[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456[7]8910 ]

[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 18:34:20 12/18/01 Tue
Author: Michel
Subject: Re: EMF to TIF
In reply to: Marcel 's message, "Re: EMF to TIF" on 11:58:58 12/17/01 Mon

Hi Marcel,

At first I thought the entire image was saved as black. The EMF support in
Envision is very basic. EMF files are vector files, and Envision simply reads
the file using Delphi's TMetaFile and there is no control over the background.

You may have more control if you load your image first into a TMetaFile then assign
it to the Graphic property of the TImageScrollBox.

Currently, in the EnWmfGr.Pas, metafiles are loaded with a white background and the
are saved by copying the entire bitmap.

Best regards,


>>Hi Marcel,
>>I am not sure what is going on here. Your code looks
>>fine. The first thing I would try is load your emf
>>file in the Demo.EXE program, and then to Save As to a
>>tif file and see if this works. This will let us know
>>if Envision is having problems handling your file.
>>Let me know.
>>Best regards,
>>>Currently avluating enVision. Great work...
>>>With something like :
>>> PTifGraphic: TTiffGraphic;
>>> PTifGraphic := TtiffGraphic.create;
>>> try
>>> pTifGraphic.Assign( Image1.Picture.Graphic );
>>> pTifGraphic.savetoFile( 'c:\temp\image.tif'
>>> finally
>>> pTifGraphic.Free;
>>> end;
>>>I always have a BLACK background. Image1 contains an
>>>emf image. Do I have a way to set a background color
>As long as I understand anything...
>You demo program displays correctly EMF images with a
>white background.
>With the explorer window, the EMF appears with a black
>background but displays correctly with Imaging (for
>I was looking for :
> pTifGraphic.OverwriteFileBackground := True;
> pTifGraphic.BackgroundColor := MakeRgb(255, 255,
>for TIFF, no ?
>Thanks for your answer.

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]

Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.