VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Codecs.ImageFiles.Jpeg Namespace / JpegFileGdiExtensions Class / SaveWithLosslessRotation(JpegFile,ImageRotateFlipType,Stream) Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    SaveWithLosslessRotation(JpegFile,ImageRotateFlipType,Stream) Method (JpegFileGdiExtensions)
    In This Topic
    Rotates JPEG image without quality loss and saves rotated JPEG image into specified stream. Method can rotate an image if image width and height are multiples of 16.
    Syntax
    'Declaration
    
    <ExtensionAttribute()>
    Public Shared Sub SaveWithLosslessRotation( _
    ByVal jpegFile
    Th JPEG file.
    As JpegFile, _
    ByVal rotateFlip
    The direction of rotation or flip. Supported values: RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, RotateNoneFlipY and equivalents.
    As Vintasoft.Imaging.ImageProcessing.Transforms.ImageRotateFlipType, _
    ByVal stream
    Stream to save the image file.
    As System.IO.Stream _
    )

    Parameters

    jpegFile
    Th JPEG file.
    rotateFlip
    The direction of rotation or flip. Supported values: RotateNoneFlipNone, Rotate90FlipNone, Rotate180FlipNone, Rotate270FlipNone, RotateNoneFlipX, RotateNoneFlipY and equivalents.
    stream
    Stream to save the image file.
    Exceptions
    ExceptionDescription
    Thrown if stream is null.
    Thrown if image width or height are not multiples of 16 OR rotateFlip specifies unsupported direction of rotation/flip OR system JPEG encoder is not found.
    Requirements

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

    See Also