To Antonio: vector based icons & images.

Post Reply
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

To Antonio: vector based icons & images.

Post by HunterEC »

Antonio:

Hope you're ok. Can we use vector based icons & backgrounds in our FW apps ? If so, how can we load them from a DLL ? Thank you very much !
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: To Antonio: vector based icons & images.

Post by nageswaragunupudi »

Please let us know which vector based image formats do you want to use?
Regards

G. N. Rao.
Hyderabad, India
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Post by HunterEC »

Rao:

EPS (Encapsulated PostScript) format.
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: To Antonio: vector based icons & images.

Post by Antonio Linares »

http://stackoverflow.com/questions/427920/how-to-programmatically-manipulate-an-eps-file

I think your best bet is to generate a PDF from the EPS and then manipulate the PDF. Then back to EPS. PDF is much more "manipulable" than is EPS.
regards, saludos

Antonio Linares
www.fivetechsoft.com
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Post by HunterEC »

Antonio:

Thank you for the link. My plan was to use a EPS based background for my FW app; this way, if the user resizes the main window, the background will grow or shrink with no loss. Is there a way to achieve this ? I don't think the epstool will do the job.
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: To Antonio: vector based icons & images.

Post by Antonio Linares »

Gustavo,

If you could find an ActiveX that displays EPS files, that could be a solution
regards, saludos

Antonio Linares
www.fivetechsoft.com
HunterEC
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Post by HunterEC »

Antonio:

Can you post an example on how to implement this as a background ? Will FW support them in a future version ? Thank you.
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: To Antonio: vector based icons & images.

Post by Antonio Linares »

Gustavo,

Antonio Linares wrote:Gustavo,

If you could find an ActiveX that displays EPS files, that could be a solution


First of all we need to know if such ActiveX control to display EPS exists
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: To Antonio: vector based icons & images.

Post by nageswaragunupudi »

FWH does not support EPS format (it is a composite format of vector + raster), even with the help of FreeImage.dll. I do not expect it in the immediate future.

FWH supports only 2 vector formats, EMF and WMF.

FWH supports realizable brushes of images.

Syntax:
DEFINE BRUSH oBrush FILE <imagefile> RESIZE
DEFINE WINDOW oWnd [MDI] BRUSH oBrush

The image will automatically re-sized when the window is re-sized.
However brushes support only raster images.

If we select a good quality image (jpg or other) of sufficiently large size (eg. 1000 x 700 ) and use re-sizable brush we can have very high quality background for window of any size upto 1980x1020. I am using it and can assure you will not be disappointed.
Regards

G. N. Rao.
Hyderabad, India
Post Reply