Hello,
I have the following piece of code:
Then I display the image on a panel.
With Colors.Red, the image is Blue
With Colors.Green, the image is Green
With Colors.Blue, the image is Red
looks like Red and Blue corresponding bytes are reversed. This is a normal behavior?
I have the following piece of code:
pixel color:
Dim bmc As BitmapCreator
Dim i As Int
Dim linePixels(128) As Int
Dim bc As ByteConverter
bmc.Initialize(128,1)
For i = 0 To 127
linePixels(i) = Colors.Red
Next
bc.LittleEndian = True
Bit.ArrayCopy(bc.IntsToBytes(linePixels),0,bmc.buffer,0,4*128)
XUIViewsUtils.SetBitmapAndFill(imgTest,bmc.Bitmap)
Then I display the image on a panel.
With Colors.Red, the image is Blue
With Colors.Green, the image is Green
With Colors.Blue, the image is Red
looks like Red and Blue corresponding bytes are reversed. This is a normal behavior?
Last edited: