小编eld*_*jon的帖子

RGB 565 - 为什么6位绿色

我正在检查不同的RGB格式,我想知道为什么在RGB-565到绿色分配6位和红色和蓝色5?绿色背后是否有任何特殊原因,或者它只是一种美学选择.因为有3种颜色,格式由2个字节表示,数字565看起来更加对称,然后是655556.

rgb image

20
推荐指数
2
解决办法
1万
查看次数

HTTP请求的最小大小(字节)

HTTP请求的最小字节数是多少?我的意思是HTTP请求应包含的强制数据的大小,例如标头的相关字段,并考虑到请求的主体是空的.

html size byte http web

13
推荐指数
2
解决办法
6190
查看次数

如何在两个不同的类中使用getter和setter

如何在两个不同的类中使用getter setter

Class A{

    int a = 10;
    GetterAndSetter gs = new GetterAndSetter();
    gs.setValue(a);
}


Class GetterAndSetter {
    int a ;
    public void setValue(int a){
    this.a = a;
}

public int getValue(){

return a;

   }

}


class B {

    int c;
    GetterAndSetter gs = new GetterAndSetter();
    c = gs.getValue();
}
Run Code Online (Sandbox Code Playgroud)

打印时,它给出null.并告诉我它是否有效.

java getter-setter

2
推荐指数
1
解决办法
7533
查看次数

标签 统计

byte ×1

getter-setter ×1

html ×1

http ×1

image ×1

java ×1

rgb ×1

size ×1

web ×1