savepicture palette

How can I maitain or set the picture palette when saving using savepicture statement?
fjuniorAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
rondeaujConnect With a Mentor Commented:
instead of using this code:

savepicture picture1.picture

use this

savepicture picture1.image

you will get different results
0
 
SendohCommented:
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
 
fjuniorAuthor Commented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
SendohCommented:
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
 
fjuniorAuthor Commented:
Can you tell me how to do this with directx?

Tahnks a lot.

0
 
rondeaujCommented:
instead of using this code:

savepicture picture1.picture

use this

savepicture picture1.image

you will get different results
0
 
fjuniorAuthor Commented:
I'm using  'savepicture picture1.image' to save changed bitmaps.

Unfortunately VB can't keep the palette.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.