Page 1 of 1

Conclusion graphic image based on a previously created array

Posted: Sat Apr 04, 2015 1:48 pm
by Eugene Lutsenko
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

Re: Conclusion graphic image based on a previously created a

Posted: Sat Apr 04, 2015 6:29 pm
by Auge_Ohr
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.
YES.

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.