Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Properties

m_bEraseBkBeforeDraggingSelection Enables/disables transparent background for the part of the image that is being dragged.
m_bEraseBkBeforeResizingSelection Flag transparent background for the part of the image that is being resized.

Classes

CExtImageEditWnd Constructor.
Create Creates a window for the image editor.
IedBitmapGet Returns the HBITMAP handle to the device-independent bitmap that is displayed in the image editor at the moment.
IedBitmapLoadResource Loads the image for editing with the image editor.
IedBitmapSet Sets the image for editing with the image editor.
IedCanCopy Returns true if copying to the clipboard can be performed.
IedCanCut Returns true if cutting to the clipboard can be performed.
IedCanPaste Returns true if the clipboard contains an image and cutting from the clipboard can be performed.
IedClear Clears the whole image or a selected part of it. In case of no selection and bSelectionOnly is set to true, the method does nothing. In case of no selection and bSelectionOnly is set to false, the method clears the whole image. The current background color is used to fill the cleared area.
IedColorBackgroundGet Returns the current background color of the image editor, which uses two colors when working with its tools: foreground and background. The first one is selected with the left mouse button and the second one - with the right button.
IedColorBackgroundSet Sets the background color for the image editor, which uses two colors when working with its tools: foreground and background. The first one is selected with the left mouse button and the second one - with the right button.
IedColorForegroundGet Returns the current foreground color of the image editor, which uses two colors when working with its tools: foreground and background. The first one is selected with the left mouse button and the second one - with the right button.
IedColorForegroundSet Sets a foreground color for the image editor, which uses two colors when working with its tools: foreground and background. The first one is selected with the left mouse button and the second one - with the right button.
IedCopyToClipboard Copies the whole image or only a selected part of it into the clipboard. In case any part of the image is selected, the method always copies this part; otherwise the whole image is copied if bSelectionOnly is set to false, or nothing if set to true. The method returns true if it succeeded.
IedCutToClipboard Cuts the whole image or only a selected part of it into the clipboard. The area cut is filled with the current background color. In case any part of the image is selected, the method always copies this part; otherwise the whole image is copied if bSelectionOnly is set to false, or nothing if set to true. The method returns true if it succeeded.
IedDataEntry_GetAt Returns a pointer to the IMAGEEDITDATA object in the image editor's stack.
IedDataEntry_GetCount Returns the number of IMAGEEDITDATA objects in the image editor's stack. This number includes objects associated with both undo and redo actions.
IedEmpty Clears the image editor including its undo/redo stack.
IedEmptyUndoBuffer Clears the stack of image editor's stored states. After invoking the method, undo/redo actions become unavailable.
IedEnableTransparency Enables/disables the transparent editing mode. If clrTransparency is set to __IED_COLORREF_NO_TRANSPARENCY, the transparency is not used. Otherwise, all the pixels with the clrTransparency color are not drawn.
IedGetStyle Returns image editor styles (i.e. _EIEDWS_ constants).
IedGetTransparencyColor Returns a color that is used as transparent. Returns __IED_COLORREF_NO_TRANSPARENCY if the transparent color is not set.
IedIsEmpty Returns true if the image editor contains no raster image, i.e. neither IedBitmapSet() nor IedBitmapLoadResource() methods have been invoked or IedBitmapEmpty() has been called.
IedIsTransparencyEnabled Returns true if the transparent editing mode is on. This mode using a transparent color is intended for editing icons. You can get the transparent color with IedGetTransparencyColor() and enable/disable it with IedEnableTransparency().
IedMagnificationGet Returns the zoom factor, which lies within the interval [1...16].
IedMagnificationSet Sets the zoom factor.
IedModifyStyle Modifies image editor styles (i.e. __EIEDWS_ constants).
IedPasteFromClipboard Pastes the image from the clipboard to the image editor. The method returns true if the image has been successfully inserted into the image editor.
IedPushUndo Adds the current image editor state to the stack and sets the proper undo code.
IedRender Paints the content of the client area on the device context.
IedSelectionGetHBITMAP Returns HBITMAP associated with the whole image or a selected part of it.
IedSelectionRectGet Returns a rectangular area associated with the selected part of the image. In case of no selection, the method returns the whole image.
IedSelectionRectSet Sets the rectangular area for the selected part of the image.
IedSizeGet Returns the current image size.
IedSizeSet Sets a new image size.
IedToolGet Returns the code of the currently selected tool.
IedToolSet Sets a tool for editing.
IedUndo Performs undo or redo edits. If nSteps is set to zero, no actions are performed. If nSteps is greater than zero, the method performs an undo action nSteps times and returns a positive value equal to the number of undone actions (this number is within the interval [0nSteps]). If nSteps is less than zero, its absolute value specifies the number of redo actions and the method returns a negative value whose absolute value indicates the number of redone actions.
IedUndoDepthGet Returns the number of available undo actions at the moment.
IedUndoDepthMaxGet Returns the size of the stack of IMAGEEDITDATA objects. The stack is used for storing image editor states and allows the user to carry out undo/redo edits.
IedUndoDepthMaxSet Sets the size of the stack of IMAGEEDITDATA objects. The stack is used for storing image editor states and allows the user to carry out undo/redo edits.
IedUndoPosGet Returns the current position in the stack containing pointers to IMAGEEDITDATA objects. The raster image of the current IMAGEEDITDATA object is displayed in the client area of the image editor window.
IedUndoTypeGet Returns the undo code associated with the stack position
OnIedActiveColorChang The method is invoked when the current foreground/background color has been changed.
OnIedCancelActions The method is invoked by the image editor when the current editing action should be cancelled. When overriding it, a parent method should be called.
OnIedClientToPic The method is invoked by the image editor for transforming the image from the client coordinates of the image editor to the image coordinates adjusted for the zoom factor.
OnIedMeasureToolSize Performs calculations of the grippers for image resizing.
OnIedPaintGrid The method is invoked by the image editor for drawing the grid when the zoom factor is greater than 3 and the __EIEDWS_GRID_LINES is set.
OnIedPaintSelectionTools The method is invoked for drawing the rectangular area enclosing the whole image or a part of it. It also performs the drawing of the grippers for image resizing.
OnIedPaintTrackingSelectionRect The method is invoked for drawing when the user is dragging the mouse making a selection.
OnIedPaintTransparencyBk The method is invoked by the image editor for drawing the background when the transparent editing mode is used.
OnIedPicToClient The method is invoked by the image editor for transforming the image from the image coordinates to the client coordinates of the image editor adjusted for the zoom factor.
OnIedQueryAirbrushTimerParms The method is invoked by the image editor when it needs data dealing with airbrush drawing.
OnIedQuerySelParms Allows you to get some data regarding to the whole image or a part of it during resizing the image.
OnIedSetCursor Sets the current mouse pointer. The method returns false if the mouse pointer has not been changed.

See Also

CExtImageEditWnd Overview | Hierarchy Chart