FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio: vector based icons & images.
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Antonio: vector based icons & images.
Posted: Tue Jun 16, 2015 03:14 AM

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 !

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: To Antonio: vector based icons & images.
Posted: Tue Jun 16, 2015 12:35 PM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Antonio: vector based icons & images.
Posted: Tue Jun 16, 2015 03:32 PM

Rao:

EPS (Encapsulated PostScript) format.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: To Antonio: vector based icons & images.
Posted: Tue Jun 16, 2015 04:30 PM
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
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Antonio: vector based icons & images.
Posted: Tue Jun 16, 2015 05:26 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: To Antonio: vector based icons & images.
Posted: Tue Jun 16, 2015 08:51 PM

Gustavo,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Antonio: vector based icons & images.
Posted: Thu Jun 18, 2015 06:25 AM

Antonio:

Can you post an example on how to implement this as a background ? Will FW support them in a future version ? Thank you.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: To Antonio: vector based icons & images.
Posted: Thu Jun 18, 2015 07:14 AM
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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: To Antonio: vector based icons & images.
Posted: Thu Jun 18, 2015 09:27 AM

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

Continue the discussion