Graphics.BeginContainer
BeginContainer()
Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.
public GraphicsContainer BeginContainer()
Return Value
This method returns a GraphicsContainer that represents the state of this Graphics at the time of the method call.
See Also
- class GraphicsContainer
- class Graphics
- namespace System.Drawing
- assembly Aspose.Drawing
BeginContainer(Rectangle, Rectangle, GraphicsUnit)
Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
public GraphicsContainer BeginContainer(Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit)
Parameter | Type | Description |
---|---|---|
dstrect | Rectangle | Rectangle structure that, together with the srcrect parameter, specifies a scale transformation for the container. |
srcrect | Rectangle | Rectangle structure that, together with the dstrect parameter, specifies a scale transformation for the container. |
unit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the unit of measure for the container. |
Return Value
This method returns a GraphicsContainer that represents the state of this Graphics at the time of the method call.
See Also
- class GraphicsContainer
- struct Rectangle
- enum GraphicsUnit
- class Graphics
- namespace System.Drawing
- assembly Aspose.Drawing
BeginContainer(RectangleF, RectangleF, GraphicsUnit)
Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
public GraphicsContainer BeginContainer(RectangleF dstrect, RectangleF srcrect, GraphicsUnit unit)
Parameter | Type | Description |
---|---|---|
dstrect | RectangleF | RectangleF structure that, together with the srcrect parameter, specifies a scale transformation for the container. |
srcrect | RectangleF | RectangleF structure that, together with the dstrect parameter, specifies a scale transformation for the container. |
unit | GraphicsUnit | Member of the GraphicsUnit enumeration that specifies the unit of measure for the container. |
Return Value
This method returns a GraphicsContainer that represents the state of this Graphics at the time of the method call.
See Also
- class GraphicsContainer
- struct RectangleF
- enum GraphicsUnit
- class Graphics
- namespace System.Drawing
- assembly Aspose.Drawing