[]
        
(Showing Draft Content)

C1.C1Preview.RenderImage

RenderImage Class

Represents an image in a C1PrintDocument. Can also be used to show an image of a System.Windows.Forms.Control.

Inheritance
RenderImage
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.4.8.dll
Syntax
public class RenderImage : RenderObject, IStyleOwner, IDocumentLocation

Constructors

Name Description
RenderImage()

Initializes a new instance of the RenderImage class.

RenderImage(Image)

Initializes a new instance of the RenderImage class, assigning the Image property.

RenderImage(Image, ImageAlign)

Initializes a new instance of the RenderImage class, assigning the Image property, and specifying a ImageAlign to use.

RenderImage(Image, Style)

Initializes a new instance of the RenderImage class, assigning the Image property, and specifying a Style to use.

RenderImage(string)

Initializes a new instance of the RenderImage class, assigning the ImageName property.

RenderImage(string, ImageAlign)

Initializes a new instance of the RenderImage class, assigning the Image property, and specifying a ImageAlign to use.

RenderImage(string, Style)

Initializes a new instance of the RenderImage class, assigning the Image property, and specifying a Style to use.

Properties

Name Description
Control

Gets or sets a Control object, an image of which is rendered by the current RenderImage object.

Image

Gets or sets an Image that is rendered by the current RenderImage object.

ImageName

Gets or sets the name of an image that is rendered by the current RenderImage object. When the current object renders, the actual image is retrieved by this name from the Dictionary of the containing C1PrintDocument.

UseClassicDrawMethod

Gets or sets value indicating whether Graphics.DrawImage(Image, dstRect) method should be used to draw content of object instead of Graphics.DrawImage(Image, dstRect, srcRect, GraphicsUnit). In some rare cases it produces more convient results. Default is false.

Methods

Name Description
AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool)

Assigns (copies) properties from another RenderObject to the current object. Calls the base AssignFrom(RenderObject, bool, bool, bool, bool, bool, bool) method. If source is a RenderGraphics, also copies RenderGraphics-specific properties.

CreateSame()

Creates new empty RenderImage object linked with same C1PrintDocument as current object.