[Gambas-user] Scaling Images or Pictures?

Benoit Minisini gambas at ...1...
Sat Jan 15 21:36:11 CET 2005


On Thursday 13 January 2005 12:10, Eilert wrote:
> Hi,
>
> is it possible to scale the picture when I do
>
> Draw.Image
>
> or
>
> Draw.Picture
>
> ???
>
> I only find a way to crop the picture. But when I want to print the
> picture within a text page, for example, I will have to scale it to a
> fixed size. The size the picture was scanned in dots will not be of use.
> The same applies for a preview: the picture must be scaled to fit into
> its place.
>
> Rolf
>
>

Use the Stretch method of the Image class this way:

Draw.Image(MyImage.Stretch(NewX, NewY))

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list