Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I save a bitmap file after changing it?

Status
Not open for further replies.

MariaSimski

Programmer
Jul 3, 2001
1
CA
What I need to do is to change a bitmap file by using VB,
or API functions in VB. I know how to load the bitmap and how to change bits on the screen (SetBitmapBits, SetPixel), but the file itself always remains unchanged. How do I save
the bitmap after its bits have been chaged in the memory,
so that when I open the file again it will be a different
image.
 
Depends.

If you have loaded an image via LoadPicture into, say, a picturebox, and then manipulated that image via API calls and the picturebox Picture properties hDC, then you should just be able to use a SavePicture call.
 
Yeah, that would be awsome, but I'm actually working
in VBA so I can't use pictureBox's. I can only use
Image boxes. Do you know if it's possible to get an hDC or
a handle on the image box so I can use API functions on it??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top