Solved

savepicture palette

Posted on 1999-01-06
7
455 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Concatenate 2 userform comboboxes to a userform text box 4 61
using Access 8 68
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 46
Problem to With line 4 57
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

770 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