[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.ImageScale

Class ImageScale

Namespace
GrapeCity.Documents.Pdf.Annotations
Assembly
GcDocs.Pdf.dll

Represents image alignment within a rectangle.

public class ImageScale : PdfDictWrapper, IPdfDict, INotifyPropertyChanged
Inheritance
object
ImageScale
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

ImageScale()

Initializes a new instance of the ImageScale class.

public ImageScale()

Properties

IgnoreBorder

Gets or sets a value indicating whether a button's appearance should be scaled to fit fully within the bounds of the annotation without taking into consideration the line width of the border.

public bool IgnoreBorder { get; set; }

Property Value

bool

Mode

Gets or sets the scaling mode.

public ImageScaleMode Mode { get; set; }

Property Value

ImageScaleMode

Position

Gets or sets the position of an image.

The two numbers between 0.0 and 1.0 indicate the fraction of leftover space to allocate at the left and bottom of an image. A value of (0.0, 0.0) positions the image at the bottom-left corner of the button rectangle. A value of (0.5, 0.5) centers it within the rectangle.

This value is used only if the image is scaled proportionally.
public PointF Position { get; set; }

Property Value

System.Drawing.PointF

Proportional

Gets or sets a value indicating whether an image should be scaled proportionally.

public bool Proportional { get; set; }

Property Value

bool

Events

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler PropertyChanged

Event Type

System.ComponentModel.PropertyChangedEventHandler