New to Telerik UI for WinForms? Start a free 30-day trial

Generates a visual placeholder for image document elements that do not have a source image.

Definition

Namespace:Telerik.WinForms.Documents.Imaging

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class NoImagePlaceholderGenerator

Inheritance: objectNoImagePlaceholderGenerator

Constructors

C#
public NoImagePlaceholderGenerator()

Methods

Creates a frozen PNG placeholder with a white background, gray border, and embedded no-image icon. The generated dimensions are at least 10 pixels in each direction.

C#
public static BitmapImage CreatePlaceholder(int width, int height)
Parameters:widthint

Requested image width in pixels.

heightint

Requested image height in pixels.

Returns:

BitmapImage

The generated placeholder image.