C# Class ImageMagick.Drawables

Afficher le fichier Open project: dlemstra/Magick.NET Class Usage Examples

Méthodes publiques

Méthode Description
Affine ( Matrix matrix ) : Drawables

Creates a new DrawableAffine instance using the specified Matrix.

Affine ( double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY ) : Drawables

Creates a new DrawableAffine instance.

Alpha ( double x, double y, PaintMethod paintMethod ) : Drawables

Creates a new DrawableOpacity instance.

Arc ( double startX, double startY, double endX, double endY, double startDegrees, double endDegrees ) : Drawables

Creates a new DrawableArc instance.

Bezier ( ) : Drawables

Creates a new DrawableBezier instance.

Bezier ( IEnumerable coordinates ) : Drawables

Creates a new DrawableBezier instance.

BorderColor ( Color color ) : Drawables

Creates a new DrawableColor instance.

BorderColor ( MagickColor color ) : Drawables

Creates a new DrawableColor instance.

Circle ( double originX, double originY, double perimeterX, double perimeterY ) : Drawables

Creates a new DrawableCircle instance.

ClipPath ( string clipPath ) : Drawables

Creates a new DrawableClipPath instance.

ClipRule ( FillRule fillRule ) : Drawables

Creates a new DrawableClipRule instance.

ClipUnits ( ClipPathUnit units ) : Drawables

Creates a new DrawableClipUnits instance.

Color ( double x, double y, PaintMethod paintMethod ) : Drawables

Creates a new DrawableColor instance.

Composite ( MagickGeometry offset, CompositeOperator compose, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Composite ( MagickGeometry offset, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Composite ( double x, double y, CompositeOperator compose, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Composite ( double x, double y, MagickImage image ) : Drawables

Creates a new DrawableCompositeImage instance.

Density ( System.Drawing.PointD pointDensity ) : Drawables

Creates a new DrawableDensity instance.

Density ( double density ) : Drawables

Creates a new DrawableDensity instance.

Ellipse ( double originX, double originY, double radiusX, double radiusY, double startDegrees, double endDegrees ) : Drawables

Creates a new DrawableEllipse instance.

FillColor ( Color color ) : Drawables

Creates a new DrawableFillColor instance.

FillColor ( MagickColor color ) : Drawables

Creates a new DrawableFillColor instance.

FillOpacity ( Percentage opacity ) : Drawables

Creates a new DrawableFillOpacity instance.

FillPatternUrl ( string url ) : Drawables

Creates a new DrawableFillPatternUrl instance.

FillRule ( FillRule fillRule ) : Drawables

Creates a new DrawableFillRule instance.

Font ( string family ) : Drawables

Creates a new DrawableFont instance.

Font ( string family, FontStyleType style, FontWeight weight, FontStretch stretch ) : Drawables

Creates a new DrawableFont instance.

FontPointSize ( double pointSize ) : Drawables

Creates a new DrawablePointSize instance.

Gravity ( Gravity gravity ) : Drawables

Creates a new DrawableGravity instance.

Line ( double startX, double startY, double endX, double endY ) : Drawables

Creates a new DrawableLine instance.

Path ( ) : Drawables

Creates a new DrawablePath instance.

Path ( IEnumerable paths ) : Drawables

Creates a new DrawablePath instance.

Point ( double x, double y ) : Drawables

Creates a new DrawablePoint instance.

Polygon ( ) : Drawables

Creates a new DrawablePolygon instance.

Polygon ( IEnumerable coordinates ) : Drawables

Creates a new DrawablePolygon instance.

Polyline ( ) : Drawables

Creates a new DrawablePolyline instance.

Polyline ( IEnumerable coordinates ) : Drawables

Creates a new DrawablePolyline instance.

PopClipPath ( ) : Drawables

Creates a new DrawablePopClipPath instance.

PopGraphicContext ( ) : Drawables

Creates a new DrawablePopGraphicContext instance.

PopPattern ( ) : Drawables

Creates a new DrawablePopPattern instance.

PushClipPath ( string clipPath ) : Drawables

Creates a new DrawablePushClipPath instance.

PushGraphicContext ( ) : Drawables

Creates a new DrawablePushGraphicContext instance.

PushPattern ( string id, double x, double y, double width, double height ) : Drawables

Creates a new DrawablePushPattern instance.

Rectangle ( Rectangle rectangle ) : Drawables

Creates a new DrawableRectangle instance.

Rectangle ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables

Creates a new DrawableRectangle instance.

Rotation ( double angle ) : Drawables

Creates a new DrawableRotation instance.

RoundRectangle ( double centerX, double centerY, double width, double height, double cornerWidth, double cornerHeight ) : Drawables

Creates a new DrawableRoundRectangle instance.

Scaling ( double x, double y ) : Drawables

Creates a new DrawableScaling instance.

SkewX ( double angle ) : Drawables

Creates a new DrawableSkewX instance.

SkewY ( double angle ) : Drawables

Creates a new DrawableSkewY instance.

StrokeAntialias ( bool isEnabled ) : Drawables

Creates a new DrawableStrokeAntialias instance.

StrokeColor ( Color color ) : Drawables

Creates a new DrawableStrokeColor instance.

StrokeColor ( MagickColor color ) : Drawables

Creates a new DrawableStrokeColor instance.

StrokeDashArray ( ) : Drawables

Creates a new DrawableDashArray instance.

StrokeDashOffset ( double offset ) : Drawables

Creates a new DrawableStrokeDashOffset instance.

StrokeLineCap ( LineCap lineCap ) : Drawables

Creates a new DrawableStrokeLineCap instance.

StrokeLineJoin ( LineJoin lineJoin ) : Drawables

Creates a new DrawableStrokeLineJoin instance.

StrokeMiterLimit ( int miterlimit ) : Drawables

Creates a new DrawableMiterLimit instance.

StrokeOpacity ( Percentage opacity ) : Drawables

Creates a new DrawableStrokeOpacity instance.

StrokePatternUrl ( string url ) : Drawables

Creates a new DrawableStrokePatternUrl instance.

StrokeWidth ( double width ) : Drawables

Creates a new DrawableStrokeWidth instance.

Text ( double x, double y, string value ) : Drawables

Creates a new DrawableText instance.

TextAlignment ( TextAlignment alignment ) : Drawables

Creates a new DrawableTextAntialias instance.

TextAntialias ( bool isEnabled ) : Drawables

Creates a new DrawableTextAntialias instance.

TextDecoration ( TextDecoration decoration ) : Drawables

Creates a new DrawableTextDecoration instance.

TextDirection ( TextDirection direction ) : Drawables

Creates a new DrawableTextDirection instance.

TextEncoding ( Encoding encoding ) : Drawables

Creates a new DrawableTextEncoding instance.

TextInterlineSpacing ( double spacing ) : Drawables

Creates a new DrawableTextInterlineSpacing instance.

TextInterwordSpacing ( double spacing ) : Drawables

Creates a new DrawableTextInterwordSpacing instance.

TextKerning ( double kerning ) : Drawables

Creates a new DrawableTextKerning instance.

TextUnderColor ( Color color ) : Drawables

Creates a new DrawableTextUnderColor instance.

TextUnderColor ( MagickColor color ) : Drawables

Creates a new DrawableTextUnderColor instance.

Translation ( double x, double y ) : Drawables

Creates a new DrawableTranslation instance.

Viewbox ( Rectangle rectangle ) : Drawables

Creates a new DrawableViewbox instance.

Viewbox ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables

Creates a new DrawableViewbox instance.

Method Details

Affine() public méthode

Creates a new DrawableAffine instance using the specified Matrix.
public Affine ( Matrix matrix ) : Drawables
matrix System.Drawing.Drawing2D.Matrix The matrix.
Résultat Drawables

Affine() public méthode

Creates a new DrawableAffine instance.
public Affine ( double scaleX, double scaleY, double shearX, double shearY, double translateX, double translateY ) : Drawables
scaleX double The X coordinate scaling element.
scaleY double The Y coordinate scaling element.
shearX double The X coordinate shearing element.
shearY double The Y coordinate shearing element.
translateX double The X coordinate of the translation element.
translateY double The Y coordinate of the translation element.
Résultat Drawables

Alpha() public méthode

Creates a new DrawableOpacity instance.
public Alpha ( double x, double y, PaintMethod paintMethod ) : Drawables
x double The X coordinate.
y double The Y coordinate.
paintMethod PaintMethod The paint method to use.
Résultat Drawables

Arc() public méthode

Creates a new DrawableArc instance.
public Arc ( double startX, double startY, double endX, double endY, double startDegrees, double endDegrees ) : Drawables
startX double The starting X coordinate of the bounding rectangle.
startY double The starting Y coordinate of thebounding rectangle.
endX double The ending X coordinate of the bounding rectangle.
endY double The ending Y coordinate of the bounding rectangle.
startDegrees double The starting degrees of rotation.
endDegrees double The ending degrees of rotation.
Résultat Drawables

Bezier() public méthode

Creates a new DrawableBezier instance.
public Bezier ( ) : Drawables
Résultat Drawables

Bezier() public méthode

Creates a new DrawableBezier instance.
public Bezier ( IEnumerable coordinates ) : Drawables
coordinates IEnumerable The coordinates.
Résultat Drawables

BorderColor() public méthode

Creates a new DrawableColor instance.
public BorderColor ( Color color ) : Drawables
color System.Drawing.Color The color of the border.
Résultat Drawables

BorderColor() public méthode

Creates a new DrawableColor instance.
public BorderColor ( MagickColor color ) : Drawables
color MagickColor The color of the border.
Résultat Drawables

Circle() public méthode

Creates a new DrawableCircle instance.
public Circle ( double originX, double originY, double perimeterX, double perimeterY ) : Drawables
originX double The origin X coordinate.
originY double The origin Y coordinate.
perimeterX double The perimeter X coordinate.
perimeterY double The perimeter Y coordinate.
Résultat Drawables

ClipPath() public méthode

Creates a new DrawableClipPath instance.
public ClipPath ( string clipPath ) : Drawables
clipPath string The ID of the clip path.
Résultat Drawables

ClipRule() public méthode

Creates a new DrawableClipRule instance.
public ClipRule ( FillRule fillRule ) : Drawables
fillRule FillRule The rule to use when filling drawn objects.
Résultat Drawables

ClipUnits() public méthode

Creates a new DrawableClipUnits instance.
public ClipUnits ( ClipPathUnit units ) : Drawables
units ClipPathUnit The clip path units.
Résultat Drawables

Color() public méthode

Creates a new DrawableColor instance.
public Color ( double x, double y, PaintMethod paintMethod ) : Drawables
x double The X coordinate.
y double The Y coordinate.
paintMethod PaintMethod The paint method to use.
Résultat Drawables

Composite() public méthode

Creates a new DrawableCompositeImage instance.
public Composite ( MagickGeometry offset, CompositeOperator compose, MagickImage image ) : Drawables
offset MagickGeometry The offset from origin.
compose CompositeOperator The algorithm to use.
image MagickImage The image to draw.
Résultat Drawables

Composite() public méthode

Creates a new DrawableCompositeImage instance.
public Composite ( MagickGeometry offset, MagickImage image ) : Drawables
offset MagickGeometry The offset from origin.
image MagickImage The image to draw.
Résultat Drawables

Composite() public méthode

Creates a new DrawableCompositeImage instance.
public Composite ( double x, double y, CompositeOperator compose, MagickImage image ) : Drawables
x double The X coordinate.
y double The Y coordinate.
compose CompositeOperator The algorithm to use.
image MagickImage The image to draw.
Résultat Drawables

Composite() public méthode

Creates a new DrawableCompositeImage instance.
public Composite ( double x, double y, MagickImage image ) : Drawables
x double The X coordinate.
y double The Y coordinate.
image MagickImage The image to draw.
Résultat Drawables

Density() public méthode

Creates a new DrawableDensity instance.
public Density ( System.Drawing.PointD pointDensity ) : Drawables
pointDensity System.Drawing.PointD The vertical and horizontal resolution.
Résultat Drawables

Density() public méthode

Creates a new DrawableDensity instance.
public Density ( double density ) : Drawables
density double The vertical and horizontal resolution.
Résultat Drawables

Ellipse() public méthode

Creates a new DrawableEllipse instance.
public Ellipse ( double originX, double originY, double radiusX, double radiusY, double startDegrees, double endDegrees ) : Drawables
originX double The origin X coordinate.
originY double The origin Y coordinate.
radiusX double The X radius.
radiusY double The Y radius.
startDegrees double The starting degrees of rotation.
endDegrees double The ending degrees of rotation.
Résultat Drawables

FillColor() public méthode

Creates a new DrawableFillColor instance.
public FillColor ( Color color ) : Drawables
color System.Drawing.Color The color to use.
Résultat Drawables

FillColor() public méthode

Creates a new DrawableFillColor instance.
public FillColor ( MagickColor color ) : Drawables
color MagickColor The color to use.
Résultat Drawables

FillOpacity() public méthode

Creates a new DrawableFillOpacity instance.
public FillOpacity ( Percentage opacity ) : Drawables
opacity Percentage The opacity.
Résultat Drawables

FillPatternUrl() public méthode

Creates a new DrawableFillPatternUrl instance.
public FillPatternUrl ( string url ) : Drawables
url string Url specifying pattern ID (e.g. "#pattern_id").
Résultat Drawables

FillRule() public méthode

Creates a new DrawableFillRule instance.
public FillRule ( FillRule fillRule ) : Drawables
fillRule FillRule The rule to use when filling drawn objects.
Résultat Drawables

Font() public méthode

Creates a new DrawableFont instance.
public Font ( string family ) : Drawables
family string The font family or the full path to the font file.
Résultat Drawables

Font() public méthode

Creates a new DrawableFont instance.
public Font ( string family, FontStyleType style, FontWeight weight, FontStretch stretch ) : Drawables
family string The font family or the full path to the font file.
style FontStyleType The style of the font.
weight FontWeight The weight of the font.
stretch FontStretch The font stretching type.
Résultat Drawables

FontPointSize() public méthode

Creates a new DrawablePointSize instance.
public FontPointSize ( double pointSize ) : Drawables
pointSize double The point size.
Résultat Drawables

Gravity() public méthode

Creates a new DrawableGravity instance.
public Gravity ( Gravity gravity ) : Drawables
gravity Gravity The gravity.
Résultat Drawables

Line() public méthode

Creates a new DrawableLine instance.
public Line ( double startX, double startY, double endX, double endY ) : Drawables
startX double The starting X coordinate.
startY double The starting Y coordinate.
endX double The ending X coordinate.
endY double The ending Y coordinate.
Résultat Drawables

Path() public méthode

Creates a new DrawablePath instance.
public Path ( ) : Drawables
Résultat Drawables

Path() public méthode

Creates a new DrawablePath instance.
public Path ( IEnumerable paths ) : Drawables
paths IEnumerable The paths to use.
Résultat Drawables

Point() public méthode

Creates a new DrawablePoint instance.
public Point ( double x, double y ) : Drawables
x double The X coordinate.
y double The Y coordinate.
Résultat Drawables

Polygon() public méthode

Creates a new DrawablePolygon instance.
public Polygon ( ) : Drawables
Résultat Drawables

Polygon() public méthode

Creates a new DrawablePolygon instance.
public Polygon ( IEnumerable coordinates ) : Drawables
coordinates IEnumerable The coordinates.
Résultat Drawables

Polyline() public méthode

Creates a new DrawablePolyline instance.
public Polyline ( ) : Drawables
Résultat Drawables

Polyline() public méthode

Creates a new DrawablePolyline instance.
public Polyline ( IEnumerable coordinates ) : Drawables
coordinates IEnumerable The coordinates.
Résultat Drawables

PopClipPath() public méthode

Creates a new DrawablePopClipPath instance.
public PopClipPath ( ) : Drawables
Résultat Drawables

PopGraphicContext() public méthode

Creates a new DrawablePopGraphicContext instance.
public PopGraphicContext ( ) : Drawables
Résultat Drawables

PopPattern() public méthode

Creates a new DrawablePopPattern instance.
public PopPattern ( ) : Drawables
Résultat Drawables

PushClipPath() public méthode

Creates a new DrawablePushClipPath instance.
public PushClipPath ( string clipPath ) : Drawables
clipPath string The ID of the clip path.
Résultat Drawables

PushGraphicContext() public méthode

Creates a new DrawablePushGraphicContext instance.
public PushGraphicContext ( ) : Drawables
Résultat Drawables

PushPattern() public méthode

Creates a new DrawablePushPattern instance.
public PushPattern ( string id, double x, double y, double width, double height ) : Drawables
id string The ID of the pattern.
x double The X coordinate.
y double The Y coordinate.
width double The width.
height double The height.
Résultat Drawables

Rectangle() public méthode

Creates a new DrawableRectangle instance.
public Rectangle ( Rectangle rectangle ) : Drawables
rectangle System.Drawing.Rectangle The rectangle to use.
Résultat Drawables

Rectangle() public méthode

Creates a new DrawableRectangle instance.
public Rectangle ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables
upperLeftX double The upper left X coordinate.
upperLeftY double The upper left Y coordinate.
lowerRightX double The lower right X coordinate.
lowerRightY double The lower right Y coordinate.
Résultat Drawables

Rotation() public méthode

Creates a new DrawableRotation instance.
public Rotation ( double angle ) : Drawables
angle double The angle.
Résultat Drawables

RoundRectangle() public méthode

Creates a new DrawableRoundRectangle instance.
public RoundRectangle ( double centerX, double centerY, double width, double height, double cornerWidth, double cornerHeight ) : Drawables
centerX double The center X coordinate.
centerY double The center Y coordinate.
width double The width.
height double The height.
cornerWidth double The corner width.
cornerHeight double The corner height.
Résultat Drawables

Scaling() public méthode

Creates a new DrawableScaling instance.
public Scaling ( double x, double y ) : Drawables
x double Horizontal scale factor.
y double Vertical scale factor.
Résultat Drawables

SkewX() public méthode

Creates a new DrawableSkewX instance.
public SkewX ( double angle ) : Drawables
angle double The angle.
Résultat Drawables

SkewY() public méthode

Creates a new DrawableSkewY instance.
public SkewY ( double angle ) : Drawables
angle double The angle.
Résultat Drawables

StrokeAntialias() public méthode

Creates a new DrawableStrokeAntialias instance.
public StrokeAntialias ( bool isEnabled ) : Drawables
isEnabled bool True if stroke antialiasing is enabled otherwise false.
Résultat Drawables

StrokeColor() public méthode

Creates a new DrawableStrokeColor instance.
public StrokeColor ( Color color ) : Drawables
color System.Drawing.Color The color to use.
Résultat Drawables

StrokeColor() public méthode

Creates a new DrawableStrokeColor instance.
public StrokeColor ( MagickColor color ) : Drawables
color MagickColor The color to use.
Résultat Drawables

StrokeDashArray() public méthode

Creates a new DrawableDashArray instance.
public StrokeDashArray ( ) : Drawables
Résultat Drawables

StrokeDashOffset() public méthode

Creates a new DrawableStrokeDashOffset instance.
public StrokeDashOffset ( double offset ) : Drawables
offset double The dash offset.
Résultat Drawables

StrokeLineCap() public méthode

Creates a new DrawableStrokeLineCap instance.
public StrokeLineCap ( LineCap lineCap ) : Drawables
lineCap LineCap The line cap.
Résultat Drawables

StrokeLineJoin() public méthode

Creates a new DrawableStrokeLineJoin instance.
public StrokeLineJoin ( LineJoin lineJoin ) : Drawables
lineJoin LineJoin The line join.
Résultat Drawables

StrokeMiterLimit() public méthode

Creates a new DrawableMiterLimit instance.
public StrokeMiterLimit ( int miterlimit ) : Drawables
miterlimit int The miter limit.
Résultat Drawables

StrokeOpacity() public méthode

Creates a new DrawableStrokeOpacity instance.
public StrokeOpacity ( Percentage opacity ) : Drawables
opacity Percentage The opacity.
Résultat Drawables

StrokePatternUrl() public méthode

Creates a new DrawableStrokePatternUrl instance.
public StrokePatternUrl ( string url ) : Drawables
url string Url specifying pattern ID (e.g. "#pattern_id").
Résultat Drawables

StrokeWidth() public méthode

Creates a new DrawableStrokeWidth instance.
public StrokeWidth ( double width ) : Drawables
width double The width.
Résultat Drawables

Text() public méthode

Creates a new DrawableText instance.
public Text ( double x, double y, string value ) : Drawables
x double The X coordinate.
y double The Y coordinate.
value string The text to draw.
Résultat Drawables

TextAlignment() public méthode

Creates a new DrawableTextAntialias instance.
public TextAlignment ( TextAlignment alignment ) : Drawables
alignment TextAlignment Text alignment.
Résultat Drawables

TextAntialias() public méthode

Creates a new DrawableTextAntialias instance.
public TextAntialias ( bool isEnabled ) : Drawables
isEnabled bool True if text antialiasing is enabled otherwise false.
Résultat Drawables

TextDecoration() public méthode

Creates a new DrawableTextDecoration instance.
public TextDecoration ( TextDecoration decoration ) : Drawables
decoration TextDecoration The text decoration.
Résultat Drawables

TextDirection() public méthode

Creates a new DrawableTextDirection instance.
public TextDirection ( TextDirection direction ) : Drawables
direction TextDirection Direction to use.
Résultat Drawables

TextEncoding() public méthode

Creates a new DrawableTextEncoding instance.
public TextEncoding ( Encoding encoding ) : Drawables
encoding Encoding Encoding to use.
Résultat Drawables

TextInterlineSpacing() public méthode

Creates a new DrawableTextInterlineSpacing instance.
public TextInterlineSpacing ( double spacing ) : Drawables
spacing double Spacing to use.
Résultat Drawables

TextInterwordSpacing() public méthode

Creates a new DrawableTextInterwordSpacing instance.
public TextInterwordSpacing ( double spacing ) : Drawables
spacing double Spacing to use.
Résultat Drawables

TextKerning() public méthode

Creates a new DrawableTextKerning instance.
public TextKerning ( double kerning ) : Drawables
kerning double Kerning to use.
Résultat Drawables

TextUnderColor() public méthode

Creates a new DrawableTextUnderColor instance.
public TextUnderColor ( Color color ) : Drawables
color System.Drawing.Color The color to use.
Résultat Drawables

TextUnderColor() public méthode

Creates a new DrawableTextUnderColor instance.
public TextUnderColor ( MagickColor color ) : Drawables
color MagickColor The color to use.
Résultat Drawables

Translation() public méthode

Creates a new DrawableTranslation instance.
public Translation ( double x, double y ) : Drawables
x double The X coordinate.
y double The Y coordinate.
Résultat Drawables

Viewbox() public méthode

Creates a new DrawableViewbox instance.
public Viewbox ( Rectangle rectangle ) : Drawables
rectangle System.Drawing.Rectangle The rectangle to use.
Résultat Drawables

Viewbox() public méthode

Creates a new DrawableViewbox instance.
public Viewbox ( double upperLeftX, double upperLeftY, double lowerRightX, double lowerRightY ) : Drawables
upperLeftX double The upper left X coordinate.
upperLeftY double The upper left Y coordinate.
lowerRightX double The lower right X coordinate.
lowerRightY double The lower right Y coordinate.
Résultat Drawables