resize graphics.DrawPicture

Hi
I want to resize picture because my Picture is draw not fit for Excample code

picReport.Graphics.DrawPicture(frmWrtColono.ImgeScope(0).Backdrop,595,140,160,198,100,150)

thank

Hello,

There is an example program that resizes a picture at: Resize Photo .

Let me know if this works for you :slight_smile:

Sincerely,

Eugene

Maybe this helps?
http://www.monkeybreadsoftware.net/faq-howtoscaleapictureproportinally.shtml

http://documentation.xojo.com/index.php/Picture
http://documentation.xojo.com/index.php/Graphics.DrawPicture

syntax is:

Graphics.DrawPicture ( Image as Picture, X as Integer, Y as Integer [,DestWidth as Integer ] [, DestHeight as Integer ] [, SourceX as Integer ] [, SourceY as Integer ] [, SourceWidth as Integer ] [, SourceHeight as Integer] )

What do you get with your code ?
I only pass x,y or all parameters. I never skip the SourceWidth, SourcheHeight parms.