Solved

SAVING A picture Box to a Black & white BMP

Posted on 1997-05-14
2
370 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
ID: 1426275
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
ID: 1426276
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

807 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