Closed PXshadow closed 2 years ago
Only
hxd.Pixels
is needed as that is the base class that holds texture pixel data and can be converted to and from easily with heaps functions.
Nice, didn't know that :p I went with BitmapData initially because the ae made sense.
About the thrown error when the pixel data isn't of the format RGBA, I usually change those to an error in an external file. That's something I'll do on my own.
Wait, I think I have a problem - the format used in vision.ds.Image is ARGB. Looks like here you're copying from RGBA. Wouldn't that mess up the channels?
Yes indeed, I must have misread the source code, the format should be the one that vision uses internally.
Only
hxd.Pixels
is needed as that is the base class that holds texture pixel data and can be converted to and from easily with heaps functions.