C# Class RightpointLabs.Pourcast.Infrastructure.Services.ImageHelper

Mostra file Open project: RightpointLabs/Pourcast

Public Methods

Method Description
GetBytes ( Action callback ) : byte[]

Get the bytes written to the stream passed to the callback

JPEGEncoder ( ) : System.Drawing.Imaging.ImageCodecInfo

Create an ImageCodecInfo for ImageFormat.Jpeg

Quality ( long value ) : System.Drawing.Imaging.EncoderParameters

Create an EncoderParameters with the given quality level

Method Details

GetBytes() public static method

Get the bytes written to the stream passed to the callback
public static GetBytes ( Action callback ) : byte[]
callback Action
return byte[]

JPEGEncoder() public static method

Create an ImageCodecInfo for ImageFormat.Jpeg
public static JPEGEncoder ( ) : System.Drawing.Imaging.ImageCodecInfo
return System.Drawing.Imaging.ImageCodecInfo

Quality() public static method

Create an EncoderParameters with the given quality level
public static Quality ( long value ) : System.Drawing.Imaging.EncoderParameters
value long
return System.Drawing.Imaging.EncoderParameters