Aligns coordinates of the given rectangle to the JPEG sample size.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Function AlignToSampleSize ( _ rectangle As Rectangle, _ mode As JpegAlignToSampleSizeMode _ ) As Rectangle
public Rectangle AlignToSampleSize( Rectangle rectangle, JpegAlignToSampleSizeMode mode )
Type: System.Drawing.Rectangle
Rectangle which needs to be aligned by the JPEG sample size.Type: Aurigma.GraphicsMill.Codecs.JpegAlignToSampleSizeMode
JpegAlignToSampleSizeMode value which specifies whether to align width and height. It is not obligatory to align width and height if you just crop the JPEG. But if you need to insert the bitmap into JPEG (using WritePatched(String, Point, Bitmap) method), you should align width and height as well (otherwise you will have noise at right and bottom edge of inserted bitmap).