BeginContainer()

Graphics::BeginContainer() method

Saves a container with the current state of this object, opens and uses a new container and returns the saved container.

SharedPtr<Drawing2D::GraphicsContainer> System::Drawing::Graphics::BeginContainer()

Graphics::BeginContainer(Rectangle, Rectangle, GraphicsUnit) method

Saves a container with the current state of this object, opens and uses a new container and returns the saved container.

SharedPtr<Drawing2D::GraphicsContainer> System::Drawing::Graphics::BeginContainer(Rectangle dstrect, Rectangle srcrect, GraphicsUnit unit)

Arguments

ParameterTypeDescription
dstrectRectangleThe rectangle that specifies a scale transformation of the new container. Used together with srcrect
srcrectRectangleThe rectangle that specifies a scale transformation of the new container. Used together with dstrect
unitGraphicsUnitThe value that specifies the unit of measure of the new container

Graphics::BeginContainer(RectangleF, RectangleF, GraphicsUnit) method

Saves a container with the current state of this object, opens and uses a new container and returns the saved container.

SharedPtr<Drawing2D::GraphicsContainer> System::Drawing::Graphics::BeginContainer(RectangleF dstrect, RectangleF srcrect, GraphicsUnit unit)

Arguments

ParameterTypeDescription
dstrectRectangleFThe rectangle that specifies a scale transformation of the new container. Used together with srcrect
srcrectRectangleFThe rectangle that specifies a scale transformation of the new container. Used together with dstrect
unitGraphicsUnitThe value that specifies the unit of measure of the new container

See Also