pixel conversion

Pages: 12
they are just examples to show it working.
Yep, they’re just examples. You can change them by whatever method you like and have as many as you want to suit your purposes.

Also feel free to change the type names to whatever you want. i.e. Pixel_with_alpha can be RGBA if you like.

The byte order is determined by how the bytes are to be interpreted so endianess is nice to know and talk about to put a label on the numbers concerned but it doesn’t really matter. The important thing is you gave to get them in the right order otherwise the pixel and hence the picture colors will be weird. Try it. There’s no magic :)
Thanks everyone for your valuable comments. I am closing this thread now.
Topic archived. No new replies allowed.
Pages: 12