To Antonio: Extension and correction of Tgdiplus-Class

To Antonio: Extension and correction of Tgdiplus-Class

Postby byte-one » Mon Apr 01, 2013 12:32 pm

Antonio, in Gdiplus-class we must set the Units to Pixel. Printing are not correct in Pixels, as the Printers are different in DPI.

In Code from Class:
Code: Select all  Expand view
METHOD New( hDC , lNoHighQuality ) CLASS Graphics
    ::hGraphics = GdiPlusNewGraphics( hDC )
    SetPageUnit2Pixel( ::hGraphics );   //NEW !! Unit to Pixel
...


Add this function in Code from gdiplus.cpp:
Code: Select all  Expand view
HB_FUNC( SETPAGEUNIT2PIXEL )
{
   Graphics * graphics = ( Graphics * ) hb_parnl( 1 );
    graphics->SetPageUnit(UnitPixel);   //Unit to Pixel
}


Antonio, i had sent to you a privat E-Mail for updating my FWH but no answer!?
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: To Antonio: Extension and correction of Tgdiplus-Class

Postby byte-one » Wed Apr 03, 2013 1:02 pm

Antonio, please do not forget to add this correction, as no right printing in GDI+ are possible.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: To Antonio: Extension and correction of Tgdiplus-Class

Postby Antonio Linares » Wed Apr 03, 2013 2:25 pm

Günther,

Added for next FWH build, thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests