C# Class ImageMagick.MagickGeometry

Encapsulation of the ImageMagick geometry object.
Mostra file Open project: dlemstra/Magick.NET Class Usage Examples

Public Methods

Method Description
CompareTo ( MagickGeometry other ) : int

Compares the current instance with another object of the same type.

Equals ( MagickGeometry other ) : bool

Determines whether the specified MagickGeometry is equal to the current MagickGeometry.

Equals ( object obj ) : bool

Determines whether the specified object is equal to the current MagickGeometry.

GetHashCode ( ) : int

Serves as a hash of this type.

MagickGeometry ( )

Initializes a new instance of the MagickGeometry class.

MagickGeometry ( Percentage percentageWidth, Percentage percentageHeight )

Initializes a new instance of the MagickGeometry class using the specified width and height.

MagickGeometry ( int widthAndHeight )

Initializes a new instance of the MagickGeometry class using the specified width and height.

MagickGeometry ( int width, int height )

Initializes a new instance of the MagickGeometry class using the specified width and height.

MagickGeometry ( int x, int y, Percentage percentageWidth, Percentage percentageHeight )

Initializes a new instance of the MagickGeometry class using the specified offsets, width and height.

MagickGeometry ( int x, int y, int width, int height )

Initializes a new instance of the MagickGeometry class using the specified offsets, width and height.

MagickGeometry ( string value )

Initializes a new instance of the MagickGeometry class using the specified geometry.

MagickGeometry ( Rectangle rectangle ) : System.Drawing

Initializes a new instance of the MagickGeometry class.

ToPoint ( ) : System.Drawing.PointD

Returns a PointD that represents the position of the current MagickGeometry.

ToString ( ) : string

Returns a string that represents the current MagickGeometry.

operator ( ) : bool

Determines whether the specified MagickGeometry instances are considered equal.

Private Methods

Method Description
Clone ( MagickGeometry value ) : MagickGeometry
CreateInstance ( IntPtr instance ) : MagickGeometry
CreateNativeInstance ( ) : NativeMagickGeometry
FromRectangle ( MagickRectangle rectangle ) : MagickGeometry
FromString ( string value ) : MagickGeometry
Initialize ( NativeMagickGeometry instance ) : void
Initialize ( NativeMagickGeometry instance, GeometryFlags flags ) : void
Initialize ( int x, int y, int width, int height, bool isPercentage ) : void
MagickGeometry ( NativeMagickGeometry instance )
ToString ( MagickGeometry value ) : string

Method Details

CompareTo() public method

Compares the current instance with another object of the same type.
public CompareTo ( MagickGeometry other ) : int
other MagickGeometry The object to compare this geometry with.
return int

Equals() public method

Determines whether the specified MagickGeometry is equal to the current MagickGeometry.
public Equals ( MagickGeometry other ) : bool
other MagickGeometry The to compare this with.
return bool

Equals() public method

Determines whether the specified object is equal to the current MagickGeometry.
public Equals ( object obj ) : bool
obj object The object to compare this with.
return bool

GetHashCode() public method

Serves as a hash of this type.
public GetHashCode ( ) : int
return int

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class.
public MagickGeometry ( )

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class using the specified width and height.
public MagickGeometry ( Percentage percentageWidth, Percentage percentageHeight )
percentageWidth Percentage The percentage of the width.
percentageHeight Percentage The percentage of the height.

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class using the specified width and height.
public MagickGeometry ( int widthAndHeight )
widthAndHeight int The width and height.

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class using the specified width and height.
public MagickGeometry ( int width, int height )
width int The width.
height int The height.

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class using the specified offsets, width and height.
public MagickGeometry ( int x, int y, Percentage percentageWidth, Percentage percentageHeight )
x int The X offset from origin.
y int The Y offset from origin.
percentageWidth Percentage The percentage of the width.
percentageHeight Percentage The percentage of the height.

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class using the specified offsets, width and height.
public MagickGeometry ( int x, int y, int width, int height )
x int The X offset from origin.
y int The Y offset from origin.
width int The width.
height int The height.

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class using the specified geometry.
public MagickGeometry ( string value )
value string Geometry specifications in the form: <width>x<height> /// {+-}<xoffset>{+-}<yoffset> (where width, height, xoffset, and yoffset are numbers)

MagickGeometry() public method

Initializes a new instance of the MagickGeometry class.
public MagickGeometry ( Rectangle rectangle ) : System.Drawing
rectangle System.Drawing.Rectangle The rectangle to use.
return System.Drawing

ToPoint() public method

Returns a PointD that represents the position of the current MagickGeometry.
public ToPoint ( ) : System.Drawing.PointD
return System.Drawing.PointD

ToString() public method

Returns a string that represents the current MagickGeometry.
public ToString ( ) : string
return string

operator() public static method

Determines whether the specified MagickGeometry instances are considered equal.
public static operator ( ) : bool
return bool