For example, afaict:
- For CIQ 3.1.* (e.g. fr935), it's not possible to pass in anything other than a resource ID to Bitmap.initialize / setBitmap(). (Then again, maybe it's possible that initialize / setBitmap() also accept a BitmapResource but not a BufferedBitmap. Sure wish there was a way to know for sure by looking at the docs!)
- For CIQ 3.4.* (e.g. fenix6pro), it's not possible to pass in a BufferedBitmap to Bitmap.initialize / setBitmap().
However:
- the docs absolutely do not make this clear
- For fenix6pro, if you pass in a BufferedBitmap to Bitmap.initialize / setBitmap, you will get a runtime error in the sim (and probably the real device) about getHeight / getWidth not existing on BufferedBitmap (at least this part is documented). However, if you "cheat" and subclass BufferedBitmap to add getHeight and getWidth, the sim will act like it works, but a real device will crash with an unexpected type error saying that either a Number or BitmapResource was expected. (Despite the lack of a stack trace, this almost certainly refers to setBitmap only supporting a res id / symbol or a bitmap resource.)
- if you pass in a BufferedBitmap (subclassed to add getHeight / getWidth) to Bitmap.initialize()'s :bitmap option on fr935, the simulator acts as if everything is fine and works as expected when you draw the bitmap. On a real device, it does not work properly. (It doesn't crash, but the bitmap isn't drawn either. I'm guessing the reason it doesn't crash in the same way as fenix6pro is because fr935 is so old it doesn't even know about the :bitmap option)
Expected behaviour:
- the docs specify which option keys/values/value types are valid for Bitmap.initialize / setBitmap, based on CIQ version. I have no idea which of the locX, locY, etc. options are valid for fenix6pro, for example [*]. I'm fairly sure that nothing besides rezId is valid for fr935, no thanks to the current docs tho.
[*] given that these options were added in System 4-6, when both CIQ 3 and CIQ 4 devices were supported, and clearly CIQ 4 devices have received at least one Bitmap feature that CIQ 3 devices did not get (the ability to create a Bitmap from a BufferedBitmap)
- the simulator doesn't simulate functionality related to Bitmap.initialize / setBitmap which isn't actually available on a real device
Reference: