To Antonio: vector based icons & images.

To Antonio: vector based icons & images.

Postby HunterEC » Tue Jun 16, 2015 3: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 !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Postby nageswaragunupudi » 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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: To Antonio: vector based icons & images.

Postby HunterEC » Tue Jun 16, 2015 3:32 pm

Rao:

EPS (Encapsulated PostScript) format.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Postby Antonio Linares » Tue Jun 16, 2015 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: To Antonio: vector based icons & images.

Postby HunterEC » Tue Jun 16, 2015 5: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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Postby Antonio Linares » Tue Jun 16, 2015 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: To Antonio: vector based icons & images.

Postby HunterEC » Thu Jun 18, 2015 6: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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: To Antonio: vector based icons & images.

Postby Antonio Linares » Thu Jun 18, 2015 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: To Antonio: vector based icons & images.

Postby nageswaragunupudi » Thu Jun 18, 2015 9: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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests