Sign in to follow this  
Followers 0
willichan

GDIPlus Create Bitmap From Scratch

5 posts in this topic

I am still kind of new to using GDI, so pardon my ignorance here.

I am wanting to create a bitmap from scratch, to plot data, then save to disk.  There are no windows, no gui or existing bitmaps that these will be created from.

I have found _GDIPlus_BitmapCreateFromFile(), _GDIPlus_BitmapCreateFromGraphics(), _GDIPlus_BitmapCreateFromHBITMAP(), _GDIPlus_BitmapCreateFromMemory(), _GDIPlus_BitmapCreateFromResource(), _GDIPlus_BitmapCreateHBITMAPFromBitmap, _GDIPlus_GraphicsCreateFromHDC() and _GDIPlus_GraphicsCreateFromHWND().

All of these, however, seem to require an existing object or image to reference.

How can I create a blank image of a size I specify, without needing to already have one?

Share this post


Link to post
Share on other sites



Yep.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

:geek:  Time to clean my glasses, and start reading again.

Thanks for the direction guys.  That looks like just what I needed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0