News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Saving Images.

Started by Ash_, April 15, 2005, 06:31:31 AM

Previous topic - Next topic

Ash_

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.

Vortex

Donkey coded an image library, it has also some functions to save images:
Quote
DIBSaveBitmap , SaveDIB32

Graphics.lib

http://donkey.visualassembler.com/libs.htm

Bieb

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.

Brett Kuntz

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!

Casper


Brett Kuntz


donkey

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
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

Casper

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

donkey

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
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable