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.v24.2.dll
NuGet Package: DevExpress.Reporting.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
textRenderingHint | DXTextRenderingHint | A DXTextRenderingHint enumeration value that specifies the quality of text rendering. |
Returns
Type | Description |
---|---|
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.