willichan Posted September 23, 2014 Share Posted September 23, 2014 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? My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
Solution JohnOne Posted September 23, 2014 Solution Share Posted September 23, 2014 _GDIPlus_BitmapCreateFromScan0 ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
UEZ Posted September 23, 2014 Share Posted September 23, 2014 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
JohnOne Posted September 23, 2014 Share Posted September 23, 2014 lol I think it's the only one he did not list AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
willichan Posted September 23, 2014 Author Share Posted September 23, 2014 Time to clean my glasses, and start reading again. Thanks for the direction guys. That looks like just what I needed. My UDFs: Barcode Libraries, Automate creation of any type of project folder, File Locking with Cooperative Semaphores, Inline binary files, Continue script after reboot, WinWaitMulti, Name Aggregator, Enigma, CornedBeef Hash Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now