Is it possible to display a graphic image based on a previously created array with the values of its pixels? In this case, an array of pixel values created from scratch without using a previously created image.
Is it possible to display a graphic image based on a previously created array with the values of its pixels? Is it possible for this to take advantage of features that Roger brought in example:
http://bb.donnay-software.com/donnay/vi ... 2&start=30
Conclusion graphic image based on a previously created array
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: Conclusion graphic image based on a previously created a
YES.Eugene Lutsenko wrote:Is it possible to display a graphic image based on a previously created array with the values of its pixels? In this case, an array of pixel values created from scratch without using a previously created image.
when using XbParts you can create a Empty XbpBitmap() associate with XbpPresspace() and use its hDC to "paint" with SetPixel().
when using API CreateBitmap() you do not need "Presspace" while you have direct Access to hDC.
now you can use GDI32 Function to "paint" which are faster than USER32 Function to "set" Pixel.
greetings by OHR
Jimmy
Jimmy