Solved

savepicture palette

Posted on 1999-01-06
7
460 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

820 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