how to get a canvas from Image or Bitmap
WuSanxiao opened this issue · 3 comments
WuSanxiao commented
i have not found a Api to to get a canvas from Image or Bitmap
WuSanxiao commented
another confusion what is the differences between Bitmap, Image, Picture and Pixmap?
tonsky commented
Canvas has ctor that accepts Bitmap.
The difference is:
- Bitmap is mutable byte array you can draw into
- Image is “GPU texture”, ready to be drawn, but not changed
- Picture is “recording of commands”, so it can be reproduced, but has no direct pixel data at all
- Pixmap, I think, is something that holds pixels for Bitmap
WuSanxiao commented
Thank you