FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour function Emf2Jpeg
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
function Emf2Jpeg
Posted: Thu May 15, 2014 12:44 PM
As in cases the page are not filled complete with text or grafics the jpg are wrong in size, i use a fix (changeable with parameters) size in all cases. Now all PDF are ok!
I use this function also to make a JPG-file (parameter cFile) from the preview.

Code (fw): Select all Collapse
function Emf2Jpeg(.....cFile,nWidth, nHeight)
......
   DEFAULT lFile := .F. , nWidth := 2000 , nHeight := nWidth * 1.414    //NEW

//   cBuf         := MemoRead( cEMF )
//   oRect        := TRect():New( 0, 0, (Bin2L( SubStr( cBuf, 21, 4 ) ) / 2)-5, (Bin2L( SubStr( cBuf, 17, 4 ) ) / 2 )-5 )
   oRect        := TRect():New( 0, 0, nHeight , nWidth )      //NEW
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: function Emf2Jpeg
Posted: Thu May 15, 2014 04:02 PM

Günther,

Many thanks :-)

We are going to review it carefully as we are close to release FWH 14.04 and we don't want any last minute bug into it :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion