Class ImageItem
Constructors
(constructor)(sourceStorageId, location, width, height, ratioWidthToHeight)
Constructs a new instance of the ImageItem class
Declaration
constructor(sourceStorageId?: string, location?: PointF, width?: number, height?: number, ratioWidthToHeight?: number);
Parameters
| Type |
Name |
Description |
| string |
sourceStorageId |
|
| PointF |
location |
|
| number |
width |
|
| number |
height |
|
| number |
ratioWidthToHeight |
|
Properties
allowedSubfolder
Declaration
allowedSubfolder: string;
Property Value
allowedTabs
Declaration
Property Value
| Type |
Description |
| string[] |
|
displayName
Declaration
get displayName(): string;
set displayName(value: string);
Property Value
effect
Declaration
get effect(): ImageEffect;
set effect(value: ImageEffect);
Property Value
imagePermissions
Declaration
get imagePermissions(): ImagePermissions;
set imagePermissions(value: ImagePermissions);
Property Value
isUserImage
Declaration
Property Value
Declaration
mviKeepTemplateTransform: boolean;
Property Value
ndEffects
Declaration
Property Value
| Type |
Description |
| NDEffects |
|
originalImageSource
Declaration
originalImageSource: ImageItem.ImageSource;
Property Value
overlayEffect
Declaration
get overlayEffect(): OverlayEffect;
set overlayEffect(value: OverlayEffect);
Property Value
ratioWidthToHeight
Declaration
ratioWidthToHeight: number;
Property Value
source
Declaration
get source(): ImageItem.ImageSource;
set source(value: ImageItem.ImageSource);
Property Value
type
Declaration
Property Value
type
Declaration
Property Value
unconvertedSource
Declaration
unconvertedSource: ImageItem.ImageSource;
Property Value
values
Declaration
values: ImageItem.ImageItemValue[];
Property Value
violationSettings
Declaration
get violationSettings(): ImageViolationSettings;
set violationSettings(value: ImageViolationSettings);
Property Value
| Type |
Description |
| ImageViolationSettings |
|
Methods
_copy(source, destination, generateNewIds, appropriateParentContainer)
Declaration
protected _copy(source: ImageItem, destination: ImageItem, generateNewIds: boolean, appropriateParentContainer: boolean): void;
Parameters
| Type |
Name |
Description |
| ImageItem |
source |
|
| ImageItem |
destination |
|
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
_setViolationSettings(value, skipTypeCheck)
Declaration
protected _setViolationSettings(value: ImageViolationSettings, skipTypeCheck?: boolean): void;
Parameters
| Type |
Name |
Description |
| ImageViolationSettings |
value |
|
| boolean |
skipTypeCheck |
|
Returns
applyPermissionsConstrain()
Declaration
applyPermissionsConstrain(): void;
Returns
clone(generateNewIds, appropriateParentContainer)
Declaration
clone(generateNewIds?: boolean, appropriateParentContainer?: boolean): ImageItem;
Parameters
| Type |
Name |
Description |
| boolean |
generateNewIds |
|
| boolean |
appropriateParentContainer |
|
Returns
equals(other)
Declaration
equals(other: ImageItem): boolean;
Parameters
Returns
getOriginalImageSize()
Declaration
getOriginalImageSize(): ISize;
Returns
getSimplifiedObject(omitProperties)
Declaration
getSimplifiedObject(omitProperties?: string[] | string): Object;
Parameters
| Type |
Name |
Description |
| string[] | string |
omitProperties |
|
Returns
getSource()
Declaration
Returns
SetHeight(value, calculateWidth)
Declaration
SetHeight(value: number, calculateWidth?: boolean): void;
Parameters
| Type |
Name |
Description |
| number |
value |
|
| boolean |
calculateWidth |
|
Returns
SetWidth(value, calculateHeight)
Declaration
SetWidth(value: number, calculateHeight?: boolean): void;
Parameters
| Type |
Name |
Description |
| number |
value |
|
| boolean |
calculateHeight |
|
Returns