GdPicture.NET Reference Guide
SetHorizontalResolution Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : SetHorizontalResolution Method
GdPicture Image Identifier.
The new horizontal resolution in Dot Per Inch (DPI).
Changes the horizontal resolution of a GdPicture image.
Syntax
'Declaration
 
Public Function SetHorizontalResolution( _
   ByVal ImageID As Integer, _
   ByVal HorizontalResolution As Single _
) As GdPictureStatus
public GdPictureStatus SetHorizontalResolution( 
   int ImageID,
   float HorizontalResolution
)
public function SetHorizontalResolution( 
    ImageID: Integer;
    HorizontalResolution: Single
): GdPictureStatus; 
public function SetHorizontalResolution( 
   ImageID : int,
   HorizontalResolution : float
) : GdPictureStatus;
public: GdPictureStatus SetHorizontalResolution( 
   int ImageID,
   float HorizontalResolution
) 
public:
GdPictureStatus SetHorizontalResolution( 
   int ImageID,
   float HorizontalResolution
) 

Parameters

ImageID
GdPicture Image Identifier.
HorizontalResolution
The new horizontal resolution in Dot Per Inch (DPI).

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Setting the image's horizontal resolution.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer
Dim HRes As Integer
ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("")
HRes = 200
oGdPictureImaging.SetHorizontalResolution(ImageID, HRes)
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetVerticalResolution Method