Solved

savepicture palette

Posted on 1999-01-06
7
444 Views
Last Modified: 2010-05-18
How can I maitain or set the picture palette when saving using savepicture statement?
0
Comment
Question by:fjunior
  • 3
  • 2
  • 2
7 Comments
 
LVL 3

Expert Comment

by:Sendoh
ID: 1454347
Hi !
What is your problem here ??
You can make it after calling savepicture statement and extract the palette from the saved bmp file right ??
0
 

Author Comment

by:fjunior
ID: 1454348
Hi !

I have one 256 color bitmap on a picture box. I want to print some text on it and then save it in the same 256 color format.
I have to keep these palette. Using savepicture always change the bitmap palette to 24bit (monitor setup).

Thanks.

0
 
LVL 3

Expert Comment

by:Sendoh
ID: 1454349
Hi !
I'm afraid you can't do that if you insist to use savepicture method. Ths only solution I can think off is used direct-x with vb and extract the bitmap from that 256 color file and then print some text on it. Then just convert them to 256 format again.
BTW, the convertion of 24bit to 256 were very complex.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:fjunior
ID: 1454350
Can you tell me how to do this with directx?

Tahnks a lot.

0
 
LVL 1

Expert Comment

by:rondeauj
ID: 1454351
instead of using this code:

savepicture picture1.picture

use this

savepicture picture1.image

you will get different results
0
 
LVL 1

Accepted Solution

by:
rondeauj earned 100 total points
ID: 1454352
instead of using this code:

savepicture picture1.picture

use this

savepicture picture1.image

you will get different results
0
 

Author Comment

by:fjunior
ID: 1454353
I'm using  'savepicture picture1.image' to save changed bitmaps.

Unfortunately VB can't keep the palette.


0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

760 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

20 Experts available now in Live!

Get 1:1 Help Now