LosslessJpeg.WriteCropped Method (Stream, Rectangle)

Crops the image and writes it to the specified Stream.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void WriteCropped(
	Stream stream,
	Rectangle rectangle
)

Parameters

stream

Type: System.IO.Stream

The Stream to save the result.
rectangle

Type: System.Drawing.Rectangle

The cropping rectangle. The rectangle must be inside the image. Note, coordinates of this rectangle and coordinates of the cropped portion of image may be different.

See Also

Reference

Manual