Jump to content

GDIPlus Create Bitmap From Scratch


willichan
 Share

Go to solution Solved by JohnOne,

Recommended Posts

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?

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...