Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Minimize size
Message
De
20/03/2006 13:08:51
 
 
À
16/03/2006 09:39:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Divers
Thread ID:
01104864
Message ID:
01105933
Vues:
23
>I have a table (SQL) that contain many pictures.
>The pictures source is BMP format (RGB but the content is gray scale).
>Each picture is about 650 kb.
>How can I minimize the picture size by VFP with/without changing the format (and to change it to grayscale).
>In addition, this change will change the print quality?

AFAIK, there is no built-in means to convert images in VFP. But this could be done by external application or control.

The size of BMP can be changed only by reducing number of used colors.
For example, converting from truecolor (32 or 24 bit) to highcolor (16 bit) will reduce the file size on 2 or 1 byte per each pixel adequately. Conversion to indexed colors (256 or even 16 colors) will result reduce the size more but may corrupt image quality depending on how many colors are really used on image. For example, 265 colors is good enough for document or plot but bad for fotos. I also recommend to use

As for other foormats, JPEG is very good for fotos. It slightly reduces image quality but gives huge reduce in file size compered to BMP and thus is used everywhere for images like fotos.
GIF and PNG have indexed numbers of colors and are better than BMP for documents or small fotos but cannot be used for large images with deep color transitions.
/A new technology turns into completely outdated stuff before you have a time to read "Getting Started..." section.
/If there are some "system programmers" then others are unsystematic.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform