[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Annotations.ImageScale

ImageScale Class

Represents image alignment within a rectangle.

Namespace: GrapeCity.Documents.Pdf.Annotations
Assembly: DS.Documents.Pdf.dll
Syntax
public class ImageScale : PdfDictWrapper, IPdfDict, INotifyPropertyChanged
Public Class ImageScale
    Inherits PdfDictWrapper
    Implements IPdfDict, INotifyPropertyChanged

Constructors

Name Description
ImageScale()

Initializes a new instance of the ImageScale class.

Properties

Name Description
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.

Mode

Gets or sets the scaling mode.

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.
Proportional

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

Events

Name Description
PropertyChanged

Occurs when a property value changes.

Extension Methods