C# Class LongoMatch.Core.Common.Image

Inheritance: ISerializable, IDisposable
ファイルを表示 Open project: GNOME/longomatch Class Usage Examples

Public Methods

Method Description
Composite ( Image image1, Image image2 ) : Image
ComputeScale ( int inWidth, int inHeight, int maxOutWidth, int maxOutHeight, int &outWidth, int &outHeight ) : void
Deserialize ( byte ser ) : Image
Dispose ( ) : void
GetObjectData ( SerializationInfo info, StreamingContext context ) : void
Image ( Gdk.Pixbuf image ) : System
Image ( SerializationInfo info, StreamingContext context ) : System
Image ( string filename ) : System
LoadFromFile ( string filename ) : Image
LoadFromFile ( string filename, int width, int height ) : Image
LoadFromResource ( string resource ) : Image
Save ( string filename ) : void
Scale ( int maxWidth, int maxHeight ) : Image
Scale ( int maxWidth, int maxHeight ) : void
ScaleFactor ( int destWidth, int destHeight, double &scaleX, double &scaleY, Point &offset ) : void
ScaleFactor ( int imgWidth, int imgHeight, int destWidth, int destHeight, double &scaleX, double &scaleY, Point &offset ) : void
ScaleInplace ( ) : void
ScaleInplace ( int maxWidth, int maxHeight ) : void
Serialize ( ) : byte[]

Private Methods

Method Description
Scale ( Gdk.Pixbuf pix, int maxWidth, int maxHeight ) : Gdk.Pixbuf
ThumbnailAbort ( ) : bool

Method Details

Composite() public static method

public static Composite ( Image image1, Image image2 ) : Image
image1 Image
image2 Image
return Image

ComputeScale() public static method

public static ComputeScale ( int inWidth, int inHeight, int maxOutWidth, int maxOutHeight, int &outWidth, int &outHeight ) : void
inWidth int
inHeight int
maxOutWidth int
maxOutHeight int
outWidth int
outHeight int
return void

Deserialize() public static method

public static Deserialize ( byte ser ) : Image
ser byte
return Image

Dispose() public method

public Dispose ( ) : void
return void

GetObjectData() public method

public GetObjectData ( SerializationInfo info, StreamingContext context ) : void
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return void

Image() public method

public Image ( Gdk.Pixbuf image ) : System
image Gdk.Pixbuf
return System

Image() public method

public Image ( SerializationInfo info, StreamingContext context ) : System
info System.Runtime.Serialization.SerializationInfo
context System.Runtime.Serialization.StreamingContext
return System

Image() public method

public Image ( string filename ) : System
filename string
return System

LoadFromFile() public static method

public static LoadFromFile ( string filename ) : Image
filename string
return Image

LoadFromFile() public static method

public static LoadFromFile ( string filename, int width, int height ) : Image
filename string
width int
height int
return Image

LoadFromResource() public static method

public static LoadFromResource ( string resource ) : Image
resource string
return Image

Save() public method

public Save ( string filename ) : void
filename string
return void

Scale() public method

public Scale ( int maxWidth, int maxHeight ) : Image
maxWidth int
maxHeight int
return Image

Scale() public method

public Scale ( int maxWidth, int maxHeight ) : void
maxWidth int
maxHeight int
return void

ScaleFactor() public method

public ScaleFactor ( int destWidth, int destHeight, double &scaleX, double &scaleY, Point &offset ) : void
destWidth int
destHeight int
scaleX double
scaleY double
offset Point
return void

ScaleFactor() public static method

public static ScaleFactor ( int imgWidth, int imgHeight, int destWidth, int destHeight, double &scaleX, double &scaleY, Point &offset ) : void
imgWidth int
imgHeight int
destWidth int
destHeight int
scaleX double
scaleY double
offset Point
return void

ScaleInplace() public method

public ScaleInplace ( ) : void
return void

ScaleInplace() public method

public ScaleInplace ( int maxWidth, int maxHeight ) : void
maxWidth int
maxHeight int
return void

Serialize() public method

public Serialize ( ) : byte[]
return byte[]