Conclusion graphic image based on a previously created array

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Conclusion graphic image based on a previously created array

#1 Post 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

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: Conclusion graphic image based on a previously created a

#2 Post 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.
greetings by OHR
Jimmy

Post Reply