Solved

SAVING A picture Box to a Black & white BMP

Posted on 1997-05-14
2
332 Views
Last Modified: 2006-11-17
I need to save a picture box to a B&W bmp file. the savepicture command in vb 4 saves in color. ?
0
Comment
Question by:jorgeblanco
2 Comments
 
LVL 2

Accepted Solution

by:
weekee earned 20 total points
Comment Utility
You will need to picturebox to complete the tast. First use a paintpicture method with the flag set to SRCINVERT. THis will copy a duplicate b\w picture to the new picturebox. Then do a saveimage method to save the picture. THe paintpicture method can bbe found in the visual basic help file.
0
 

Author Comment

by:jorgeblanco
Comment Utility
The only problem is that the bmp file saved is still a color bmp in black & white , so the file size is the same size i need it to be a real b&w bmp
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now