Jump to content
Sign in to follow this  
willichan

GDIPlus Create Bitmap From Scratch

Recommended Posts

willichan

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
UEZ

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
willichan

: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  

×