Back to Devexpress

XRControl.ToImage(DXTextRenderingHint) Method

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-dot-toimage-x28-devexpress-dot-drawing-dot-dxtextrenderinghint-x29.md

latest2.0 KB
Original Source

XRControl.ToImage(DXTextRenderingHint) Method

Returns the graphical representation of a control created using the specified text rendering mode.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public virtual DXImage ToImage(
    DXTextRenderingHint textRenderingHint
)
vb
Public Overridable Function ToImage(
    textRenderingHint As DXTextRenderingHint
) As DXImage

Parameters

NameTypeDescription
textRenderingHintDXTextRenderingHint

A DXTextRenderingHint enumeration value that specifies the quality of text rendering.

|

Returns

TypeDescription
DXImage

The resulting image.

|

Remarks

Use the ToImage method to get an image from any report control. You can use this image to display the control on a web page, or save the image to a file for later use. The textRenderingHint parameter determines whether the text is rendered with anti-aliasing.

Note

A control cannot be saved to an image if it does not belong to the report. So if you create a separate control for a report, first add the control to any report to call the ToImage method.

See Also

XRControl Class

XRControl Members

DevExpress.XtraReports.UI Namespace