how can i save an image if i have the hDC of the image. do i have to use an external library (such as GDIPlus) or is there Windows API calls i can use to save images.
thanks in advance.
Donkey coded an image library, it has also some functions to save images:
Quote
DIBSaveBitmap , SaveDIB32
Graphics.lib
http://donkey.visualassembler.com/libs.htm
I just recently wrote a program to do it. You're going to need to fill out a BITMAPFILEHEADER structure and use GETDIBITS (API function) to get the color data, then write both to a file. I'll give you some example code when I get home.
Oh, and in the meantime, check out http://www.wotsit.org for the bitmap file format.
Quote from: Vortex on April 15, 2005, 09:51:48 AM
Donkey coded an image library, it has also some functions to save images:
Quote
DIBSaveBitmap , SaveDIB32
Graphics.lib
http://donkey.visualassembler.com/libs.htm
Does anyone know where his lib's have gone? I used one in an old project that I'm resurrecting, and am short a lib!
Yes ...
http://www3.telus.net/~edgarh1/
... is the correct URL.
Casper
Thanks! :)
That URL is just where my site is redirected to currently and could change at any time, the actual URL you should be using is...
http://www.assembler.ca/
Donkey
Donkey,
Thank you for the correction. I do not know where I got that link, just knew it worked. It is good to know what your domain name is, now.
Casper
No probs Casper,
Any updates or new stuff are usually uploaded to www.assembler.ca before my personal webspace, I just use that redirection when I am pushing my bandwidth limit or forget to remove the domain forwarding. I have been considerring taking over visualassembler.com from _shawn but for now have too many other things on my plate to get around to it, in that case the other link may be up again one day as well.
Donkey