C# Class Glass.LeadTools.ImagingExtensions.ImageUtils

Mostra file Open project: SuperJMN/Glass

Public Methods

Method Description
Contains ( this outer, Size inner ) : bool
OptimizeImageForBarcode ( this image ) : RasterImage
PreserveAspectRatioWithinBounds ( this size, Size bounds ) : Size
Resize ( this image, Size maxSize ) : System.Windows.Media.ImageSource
SaveAsJpeg ( this image, string path ) : void
ToBitmapSource ( this rasterImage ) : System.Windows.Media.Imaging.BitmapSource
ToLeadRectRect ( this rectCrop ) : LeadRect
ToRasterImage ( this rasterImage ) : RasterImage
Tranform ( this originalImage, Imaging.Core.Transform transformProperties ) : RasterImage

Private Methods

Method Description
ImageUtils ( ) : System
Transform ( Imaging.Core.Transform transformProperties, RasterImage result ) : void

Method Details

Contains() public static method

public static Contains ( this outer, Size inner ) : bool
outer this
inner System.Windows.Size
return bool

OptimizeImageForBarcode() public static method

public static OptimizeImageForBarcode ( this image ) : RasterImage
image this
return RasterImage

PreserveAspectRatioWithinBounds() public static method

public static PreserveAspectRatioWithinBounds ( this size, Size bounds ) : Size
size this
bounds System.Windows.Size
return System.Windows.Size

Resize() public static method

public static Resize ( this image, Size maxSize ) : System.Windows.Media.ImageSource
image this
maxSize System.Windows.Size
return System.Windows.Media.ImageSource

SaveAsJpeg() public static method

public static SaveAsJpeg ( this image, string path ) : void
image this
path string
return void

ToBitmapSource() public static method

public static ToBitmapSource ( this rasterImage ) : System.Windows.Media.Imaging.BitmapSource
rasterImage this
return System.Windows.Media.Imaging.BitmapSource

ToLeadRectRect() public static method

public static ToLeadRectRect ( this rectCrop ) : LeadRect
rectCrop this
return LeadRect

ToRasterImage() public static method

public static ToRasterImage ( this rasterImage ) : RasterImage
rasterImage this
return RasterImage

Tranform() public static method

public static Tranform ( this originalImage, Imaging.Core.Transform transformProperties ) : RasterImage
originalImage this
transformProperties Imaging.Core.Transform
return RasterImage