[]
        
(Showing Draft Content)

FarPoint.Win.Picture

Picture Class

Represents a picture to display.

Inheritance
Picture
Namespace: FarPoint.Win
Assembly: FarPoint.Win.dll
Syntax
[TypeConverter(typeof(PictureConverter))]
public class Picture : ISerializeSupport, IDisposable
<TypeConverter(GetType(PictureConverter))>
Public Class Picture
    Implements ISerializeSupport, IDisposable

Constructors

Name Description
Picture()

Creates a picture.

Picture(Image)

Creates a picture with the specified image.

Picture(Image, RenderStyle)

Creates a picture with the specified image and style.

Picture(Image, RenderStyle, Color)

Creates a picture with the specified image, style, and transparency color.

Picture(Image, RenderStyle, Color, HorizontalAlignment, VerticalAlignment)

Creates a picture with the specified image, style, transparency color, and alignment.

Picture(Image, RenderStyle, Color, int)

Creates a picture with the specified image, style, transparency color, and transparency tolerance.

Picture(Image, RenderStyle, Color, int, HorizontalAlignment, VerticalAlignment)

Creates a picture with the specified image, style, transparency color (with tolerance), and alignments of contents.

Picture(Image, Color)

Creates a picture with the specified image and transparency color.

Picture(object)

Creates a picture by copying another.

Fields

Name Description
disposed

Internal use only. Specifies whether disposed.

Properties

Name Description
AlignHorz

Gets or sets the horizontal alignment of the picture.

AlignVert

Gets or sets the vertical alignment of the picture.

Image

Gets or sets the picture to display.

Style

Gets or sets the style used for rendering the picture.

TransparencyColor

Gets or sets the transparency color for rendering the picture.

TransparencyTolerance

Gets or sets the amount of tolerance of transparency from the color set as transparent.

Methods

Name Description
Deserialize(XmlNodeReader)

Loads the object from XML.

Dispose()

Internal use only. Releases any resources being used.

Dispose(bool)

Internal use only. Releases any resources being used.

OnPictureChanged(EventArgs)

Raises the PictureChanged event when the picture changes.

Paint(Graphics, Rectangle)

Paints the picture in the specified rectangle.

Paint(Graphics, int, int, int, int)

Paints the picture from the specified location.

Paint(Graphics, int, int, int, int, bool)

Paints the picture from the specified location.

Serialize(XmlTextWriter)

Saves the object to XML.

Events

Name Description
PictureChanged

Occurs when the picture changes.