VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Decoders Namespace / JpegDecoder Class / SetImageSize(Int32,Int32) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
SetImageSize(Int32,Int32) Method (JpegDecoder)
In This Topic
Sets the size of the image. This method must be used when image size is not specified in JPEG stream because image size exceeds allowable image dimension (width/height) in 65535 pixels.
Syntax
'Declaration

Public Sub SetImageSize( _
ByVal imageWidth
Width of the image.
As System.Int32, _
ByVal imageHeight
Height of the image.
As System.Int32 _
)
public void SetImageSize(
System.Int32 imageWidth,
System.Int32 imageHeight
)

Parameters

imageWidth
Width of the image.
imageHeight
Height of the image.
Exceptions
ExceptionDescription
Thrown if JPEG file is initialized already.
Thrown if imageWidth of imageHeight is 0 or negative.
Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also