Methods

Parent Previous Next

Properties
Events

(P) = Protected method


Methods

Description

AddDrawObject

Adds a new object to the image

AddToPalette

Add colors to the image palette

AlignFigures

Align figures vertically and horizontally

AlphaActive

If true, alpha channel of 32 bit bitmaps is activated

AlphaXY

Returns the alpha value at XY point (32 bit bitmaps only)

BaseToClient

Converts base image coordinates to screen coordinates

BaseToImage

Converts bas image coordinates to image rect coordinates

BeginDraw

Creates an object and initiates drawing

BeginEdit

Start a bitmap editing session

CaptureAll

Creates an instance of the Selector and makes it cover the entire image,

CancelCapture

Removes the Selector if active.

CancelEdit

Cancels a bitmap edit session, discarding any changes

Clear

Clears an image and all its objects. With icons, clears all the icon images.

ClearContent

Clears an image and all its objects. With icons, clears only the active icon image.

ClientToBase

Converts screen coordinates to image base coordinates

ColorXY

Returns the color at point XY

ConvertWithPalette

Converts a true color image to a 4 or 8 bit image, using the image colors to create the palette.

CopyImage

Creates a copy of the image and puts it on the clipboard

CopyScreen

Creates a copy of the visible part of the image and puts it on the clipboard. Zoom and resampling preserved.

CreateGroup

Creates a group, empty or with members

CreateImagePalette

Sets the colors of the image palette

CutToClipboard

Cuts a figure to the clipboard

DeleteDrawObject

Deletes one or more objects

DisableCursors

If true, ImagePainter will not attempt to change the cursor,  

DeleteGroup

Deletes a group and all its members.

DisplayIcon

Shows an icon from the icon list, referenced by index.

DuplicateObject

Duplicates an object

EndEdit

End a bitmap edit session and saves changes

EndDraw (P)

Ends a drawing operation

ExecuteDrawObject

Executes a figure.previously created with the BeginDraw method

ExecuteManipulator

Creates and executes a manipulator

ExecuteTool

Creates and executes a figures defined by its tool identifier

FitToClient

Zooms the image so it fits into the component

FitWithGrid

Zooms the image to the best fit of the component, allowing a pixel grid  

GetIconsCountFromFile

Counts icons in an icon file

GetPaletteDuplicates

Returns the indexes of duplicate palette colors

GetUnusedPaletteDuplicates

Returns the indexes of duplicate palette colors that are not used by the image

GetUnusedPaletteEntries

Returns the indexes of palette colors that are not used by the image.

GetUsedPaletteEntries

Returns the indexes of palette colors that are used by the image

ImageBitmap24

Return a copy of the image as a 24 bit bitmap

ImageToBase

Converts image rect coordinates to image base coordinates

InitIP

Initiates the input parameter record

IsDocument

If returns true, tells if the loaded file is a document file (IPD file)

IsPaletteFull

If returns true, tells if all the palette entries are in use by the image.

IsToolRegistered

If returns true, tells if a tool class identifier represents an implemented tool class.

LoadFromBitmap

Creates a new image from a bitmap in memory

LoadFromClipboard

Creates a new image image from a bitmap on the clipboard

LoadFromFile

Loads a new image from file

LoadFromStream

Loads a new image based on layer structure from a stream

LoadObjectFromBitmap

Loads an object into the image using a bitmap in memory as the source.

LoadObjectFromFile

Loads an object from a file into the image, either a graphic file or an ImagePainter object file (IPO file)

Merge

Merges all objects into the background layer.

MergeInto

Merges one or more objects into a new bitmap layer,

ObjectsFromPoint

Returns the objects that touch a specific image point.

PaletteColorsFromImage

Returns the unique colors contained by an image.

Paste

Pastes the content of the clipboard into an image.

PasteScreenShot

Creates a screen shot and makes it the new image.

PointInFrame

Returns true if a point is within a figure frame

PointInImage

Returns true if a point is within the image

Redo

Cancels last undo

RegisterToolDef

Registers a new tool class definition

RegisterProfile

Registers a tool profile

RepaintObjects

Redisplays all objects

ResizeImage

Resizes the image

RestoreSelector

Restores the selector to the state it had, before it was last removed

RotateImage

Rotates the image

ScaleImage

Scales the image

SaveToFile

Saves the image to a file

SaveToStream

Saves the layer structure of an image to a stream

ScrollBy

Scrolls the image by a delta.

ScrollIntoView

Scrolls the image so that a specific object becomes visible.

ScrollTo

Scrolls the image to a specific position

SelectAll

Selects all objects (MultiSelect must be true)

TransformToBitmap

Transformed an object to a bitmap object

UpdateIcon

Saves an icon to the icon list

UpdatePaletteFromImage

Synchronizes the image palette with the colors in the image.

Undo

Undoes last change

ViewRectToBase

Converts the visible part of the image to base coordinates

ViewRectToClient

Converts the visible part of the image to screen coordinates.