savepicture palette

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

[Webinar] Streamline your web hosting managementRegister Today

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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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
All Courses

From novice to tech pro — start learning today.