You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Resizing and Rotating > Scale Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.Scale Method

Resizes a GdPicture image image, keeping the same aspect ratio. The image is scaled by a percentage value.

C#
public GdPictureStatus Scale(
    int ImageID, 
    Single ScalePercent, 
    InterpolationMode InterpolationMode
);
Visual Basic
Public Function Scale(
    ByVal ImageID As Integer, 
    ByVal ScalePercent As Single, 
    ByVal InterpolationMode As InterpolationMode
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
ScalePercent 
Scale percentage value. ie: if ScalePercent = 50, the image is reduced to half size.  
InterpolationMode 
A member of the Drawing2D.InterPolationMode enumeration.  
Returns

A member of the GdPictureStatus enumeration.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.