C# Класс ImageMagick.MagickGeometry

Encapsulation of the ImageMagick geometry object.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CompareTo() публичный Метод

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.
Результат int

Equals() публичный Метод

Determines whether the specified MagickGeometry is equal to the current MagickGeometry.
public Equals ( MagickGeometry other ) : bool
other MagickGeometry The to compare this with.
Результат bool

Equals() публичный Метод

Determines whether the specified object is equal to the current MagickGeometry.
public Equals ( object obj ) : bool
obj object The object to compare this with.
Результат bool

GetHashCode() публичный Метод

Serves as a hash of this type.
public GetHashCode ( ) : int
Результат int

MagickGeometry() публичный Метод

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

MagickGeometry() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

Initializes a new instance of the MagickGeometry class.
public MagickGeometry ( Rectangle rectangle ) : System.Drawing
rectangle System.Drawing.Rectangle The rectangle to use.
Результат System.Drawing

ToPoint() публичный Метод

Returns a PointD that represents the position of the current MagickGeometry.
public ToPoint ( ) : System.Drawing.PointD
Результат System.Drawing.PointD

ToString() публичный Метод

Returns a string that represents the current MagickGeometry.
public ToString ( ) : string
Результат string

operator() публичный статический Метод

Determines whether the specified MagickGeometry instances are considered equal.
public static operator ( ) : bool
Результат bool