PictureCommand Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the type of commands that can be recorded and played back in a picture.
public enum class PictureCommand
public enum PictureCommand
type PictureCommand =
Public Enum PictureCommand
- Inheritance
-
PictureCommand
Fields
Name | Value | Description |
---|---|---|
DrawLine | 0 | Draws a line between two points. |
DrawRectangle | 1 | Draws the outline of a rectangle. |
DrawRoundedRectangle | 2 | Draws the outline of a rectangle with rounded corners. |
DrawEllipse | 3 | Draws the outline of an ellipse. |
DrawPath | 4 | Draws the outline of a path. |
DrawImage | 5 | Draws an image. |
DrawArc | 6 | Draws an arc. |
DrawPdfPage | 7 | Draws a PDF page. |
FillRectangle | 10 | Fills a rectangle with the current fill color or paint. |
FillRoundedRectangle | 11 | Fills a rectangle with rounded corners with the current fill color or paint. |
FillEllipse | 12 | Fills an ellipse with the current fill color or paint. |
FillPath | 13 | Fills a path with the current fill color or paint. |
FillArc | 14 | Fills an arc with the current fill color or paint. |
FillPath2 | 15 | Alternative command for filling a path. |
DrawStringAtPoint | 20 | Draws text at a specific point. |
DrawStringInRect | 21 | Draws text within a rectangle with alignment. |
DrawStringInPath | 22 | Draws text along a path. |
DrawTextInRect | 25 | Draws formatted text within a rectangle. |
StrokeSize | 30 | Sets the stroke width. |
StrokeColor | 31 | Sets the stroke color. |
StrokeDashPattern | 32 | Sets the stroke dash pattern. |
StrokeLineCap | 33 | Sets the stroke line cap style. |
StrokeLineJoin | 34 | Sets the stroke line join style. |
StrokeLocation | 35 | Sets the stroke location. |
StrokeMiterLimit | 36 | Sets the miter limit for stroke line joins. |
LimitStrokeScaling | 37 | Controls whether stroke scaling is limited. |
StrokeLimit | 38 | Sets the stroke limit. |
StrokeBrush | 39 | Sets the stroke brush. |
FillColor | 40 | Sets the fill color. |
FillPaint | 41 | Sets the fill paint (gradient, pattern, etc.). |
FontColor | 50 | Sets the font color. |
FontName | 51 | Sets the font name or family. |
FontSize | 52 | Sets the font size. |
Scale | 60 | Applies a scaling transformation. |
Translate | 61 | Applies a translation transformation. |
Rotate | 62 | Applies a rotation transformation around the origin. |
RotateAtPoint | 63 | Applies a rotation transformation around a specified point. |
ConcatenateTransform | 64 | Concatenates a transformation matrix with the current transformation. |
Shadow | 70 | Sets shadow properties. |
Alpha | 71 | Sets the global alpha (transparency) value. |
BlendMode | 72 | Sets the blend mode for compositing. |
SubtractFromClip | 80 | Subtracts a region from the current clipping area. |
ClipPath | 81 | Sets the clipping area to a path. |
ClipRectangle | 82 | Sets the clipping area to a rectangle. |
SubtractPathFromClip | 83 | Subtracts a path from the current clipping area. |
SaveState | 100 | Saves the current graphics state on a stack. |
RestoreState | 101 | Restores the most recently saved graphics state. |
ResetState | 102 | Resets the graphics state to its default values. |
SystemFont | 110 | |
BoldSystemFont | 111 |