Cropping images in C

Started by
2 comments, last by Matthew Allen 24 years, 5 months ago
StretchBlt

DirectDraw, well.....You just load a texture on your surface and then crop it yourself.
Using blit you might even get it cropped.

------------------
Dance with me......

Advertisement
Ok, once it's cropped, how could I save it? I guess that was my real question. How owuld I go about saving a DirectDraw surface as a .bmp file?

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

How would I go about cropping an image using C, directdraw, or the GDI.

------------------
- mallen22@concentric.net
- http://members.tripod.com/mxf_entertainment/

A .BMP file looks like this.

BITMAPFILEHEADER
BITMAPINFO
palette (optional)
pixel data

For more information look up the Win32 docs.

This topic is closed to new replies.

Advertisement