Class ImageItem.ImageSource
Constructors
(constructor)(storageId, url, sourcePageIndex, actualSize, saveAspectRatio, origin)
Constructs a new instance of the ImageSource class
Declaration
constructor(storageId?: string, url?: string, sourcePageIndex?: number, actualSize?: boolean, saveAspectRatio?: boolean, origin?: ImageSource.Origin);
Parameters
| Type |
Name |
Description |
| string |
storageId |
|
| string |
url |
|
| number |
sourcePageIndex |
|
| boolean |
actualSize |
|
| boolean |
saveAspectRatio |
|
| Origin |
origin |
|
Properties
_propertyChanged
Declaration
protected _propertyChanged: EventWithSenderArg<ImageSource, string>;
Property Value
actualSize
Declaration
get actualSize(): boolean;
set actualSize(value: boolean);
Property Value
dpiX
Declaration
get dpiX(): number;
set dpiX(dpi: number);
Property Value
dpiY
Declaration
get dpiY(): number;
set dpiY(dpi: number);
Property Value
height
Declaration
get height(): number;
set height(value: number);
Property Value
id
Declaration
get id(): string;
set id(value: string);
Property Value
isVector
Declaration
get isVector(): boolean;
set isVector(value: boolean);
Property Value
origin
Declaration
get origin(): ImageSource.Origin;
Property Value
pageIndex
Declaration
get pageIndex(): number;
set pageIndex(value: number);
Property Value
saveAspectRatio
Declaration
get saveAspectRatio(): boolean;
set saveAspectRatio(value: boolean);
Property Value
type
Declaration
get type(): ImageSourceType;
Property Value
url
Declaration
get url(): string;
set url(value: string);
Property Value
width
Declaration
get width(): number;
set width(value: number);
Property Value
Methods
addPropertyChanged(listener)
Declaration
addPropertyChanged(listener: (sender: ImageSource, eventArgs: string) => void): void;
Parameters
| Type |
Name |
Description |
| (sender: ImageSource, eventArgs: string) => void |
listener |
|
Returns
clone()
Declaration
Returns
equals(other)
Declaration
equals(other: ImageSource): boolean;
Parameters
Returns
removePropertyChanged(listener)
Declaration
removePropertyChanged(listener: (sender: ImageSource, eventArgs: string) => void): void;
Parameters
| Type |
Name |
Description |
| (sender: ImageSource, eventArgs: string) => void |
listener |
|
Returns
setIdWithOrigin(id, origin)
Declaration
setIdWithOrigin(id: string, origin: ImageSource.Origin): void;
Parameters
| Type |
Name |
Description |
| string |
id |
|
| Origin |
origin |
|
Returns
toJSON()
Declaration
toJSON(): {
id: string;
width: number;
height: number;
isVector: boolean;
pageIndex: number;
url: string;
actualSize: boolean;
saveAspectRatio: boolean;
origin: ImageSource.Origin;
};
Returns
| Type |
Description |
| {
id: string;
width: number;
height: number;
isVector: boolean;
pageIndex: number;
url: string;
actualSize: boolean;
saveAspectRatio: boolean;
origin: ImageSource.Origin;
} |
|