Recent

Author Topic: Printer graphic upside-down  (Read 3144 times)

tomek

  • Jr. Member
  • **
  • Posts: 85
Printer graphic upside-down
« on: May 29, 2011, 09:31:41 pm »
Hi,
I use Printer.Canvas.StretchDraw and I get my Bitmap UpSide-Down. What is the option to correctly rotate picture ?

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Printer graphic upside-down
« Reply #1 on: May 29, 2011, 09:41:15 pm »
There is no standard procedure to rotate images, you can use something like this:

http://delphi.about.com/cs/adptips2001/a/bltip1201_4.htm

AFAIK, PalcalMagick also does this:

http://wiki.lazarus.freepascal.org/PascalMagick
« Last Edit: May 29, 2011, 09:46:53 pm by typo »

tomek

  • Jr. Member
  • **
  • Posts: 85
Re: Printer graphic upside-down
« Reply #2 on: May 31, 2011, 12:17:43 pm »
I found that when I set negative height (-Bitmap.Height) in StretchDraw then it is ok.


 

TinyPortal © 2005-2018