In This Topic ▼

ImageViewer Class Methods

Summary

For a list of all members of this type, see ImageViewer members

Public Methods

Name Description
Public Method beginAutoSizeChanged Disable detecting if the viewer size has changed.
Public Method beginRender Stops the viewer from rendering the content if any change is applied. This is useful to increase the control's speed efficiency.
Public Method beginTransform Stops the viewer from updating the transformations matrices and updating the view layout. This is useful to increase the control's speed efficiency.
Public Method beginUpdate Stops the viewer from updating the transformations matrices, view layout and rendering the content if any change is applied. This is useful to increase the control's speed efficiency.
Public Method centerAtPoint Centers the view display at the specified point.
Public Method combineFloater Combines the floaters with the images for all items inside this ImageViewer.
Public Method convertBoundsToView Converts a rectangle value from logical (excluding the current transformation) to physical (in control pixel coordinates).
Public Method convertPoint Converts a LeadPointD from one coordinates to the other.
Public Method convertPoints Converts an array of LeadPointD from one coordinates to the other.
Public Method convertRect Converts a LeadRectD from one coordinates to the other.
Public Method convertTransform Converts a transformation matrix relative to one item to another.
Public Method static  | Shared in VB disableSync Temporarily disable syncing for a group while keeping the group itself intact.
Public Method disableTransitions Stops the viewer from updating the transformations matrices and view layout during CSS transitions.
Public Method dispose Destroys this ImageViewer and removes it from the page.
Public Method static  | Shared in VB enableSync Re-enable syncing for a group.
Public Method enableTransitions Enable updating the transformations matrices and view layout during CSS transitions.
Public Method endAutoSizeChanged Enables detecting if the viewer size has changed.
Public Method endRender Instruct the viewer that updates are completed and rendering of content can be resumed.
Public Method EndRenderItem Instructs the viewer that updates are completed and rendering of content can be resumed on the specified item.
Public Method endTransform Instruct the viewer that updates are completed and updating transformations and view layout can be resumed.
Public Method endUpdate Instruct the viewer that updates are completed and updating the transformations matrices, view layout and rendering of content can be resumed.
Public Method ensureBoundsVisible Ensures that the specified rectangle area is visible in the viewer.
Public Method ensureItemVisible Ensures that an item is visible in the viewer.
Public Method ensureItemVisibleByIndex Ensures that the item at the specified index is visible in the viewer.
Public Method findNearestItem Gets the item nearest to the specified physical (in viewer pixel) coordinates.
Public Method getAllVisibleItems Gets all the visible items in the viewer.
Public Method static  | Shared in VB getDestinationRectangle Utility method to adjust the given LeadRectD based on source size, size mode and alignment.
Public Method getFirstVisibleItem First visible item or part of it in the viewer.
Public Method getFirstVisibleItemIndex Index for the first visible item or part of it in the viewer.
Public Method static  | Shared in VB getImageProcessingFile Helper method to build the full name of an image processing JavaScript file.
Public Method getImageTransformWithDpi Transformation matrix of the image with or without DPI scaling (single item mode).
Public Method getItemBounds Current logical (excluding the current transformation) bounds of any part of an item.
Public Method getItemContentTransform Transformation matrix of the content of an item.
Public Method getItemFloaterSize Floater image size of an item.
Public Method getItemFloaterTransform Transformation matrix of the floater of an item.
Public Method getItemImageFloatingPointTransform Transformation matrix of the image of an item without rounded values.
Public Method getItemImageSize Image size of an item.
Public Method getItemImageTransform Transformation matrix of the image of an item.
Public Method getItemImageTransformScaleOnly Transformation matrix of the image of an item without translation and rotation.
Public Method getItemImageTransformWithDpi Transformation matrix of the image of an item with or without DPI scaling.
Public Method getItemTransform Transformation matrix of the whole item.
Public Method getItemViewBounds Current physical bounds (in control pixel coordinates) of any part of an item.
Public Method getLargestVisibleItem Largest visible item or part of it in the viewer.
Public Method getLargestVisibleItemIndex Index for the largest visible item or part of it in the viewer.
Public Method getLastVisibleItem Last visible item or part of it in the viewer.
Public Method getLastVisibleItemIndex Index for the last visible item or part of it in the viewer.
Public Method static  | Shared in VB getScaleFactors Utility method to calculate the scale factor needed to perform the specified size mode using a source and destination size.
Public Method static  | Shared in VB getSynced Returns a list of all ImageViewer instances that match the given sync.
Public Method getViewBounds Current bounds of the view in physical (in control pixel) coordinates.
Public Method gotoItem Scroll to the top-left of an item.
Public Method gotoItemByIndex Scrolls to the top-left of an item given by its index.
Public Method hitTestFloater First item that has its floater under a physical (in viewer pixel) coordinates.
Public Method hitTestItem First item that is under a physical point (in viewer pixel) coordinates.
Public Method hitTestItemPart Specific part of the item under a physical (in viewer pixel) coordinates.
Public Method hitTestItems Items that intersect with a rectangle in physical (in viewer pixel) coordinates.
Public Method invalidate Invalidates a portion of the entire surface of the control and causes the control to be redrawn.
Public Method invalidateItem Invalidate an item.
Public Method invalidateItemByIndex Invalidate the item at the specified index.
Public Method isItemVisible Gets a value that indicates whether the specified item or part is currently visible in the viewer.
Public Method static  | Shared in VB isSyncDisabled Determines if syncing for a group has been disabled.
Public Method onActiveItemChanged Raises the ActiveItemChanged event.
Public Method onAutoItemElementsAdded Raises the AutoItemElementsAdded event.
Public Method onAutoItemElementsRemoved Raises the AutoItemElementsRemoved event.
Public Method onElementsUpdated Raises the ElementsUpdated event.
Public Method onEraseBackground Raises the EraseBackground event.
Public Method onForeCanvasSizeChanged Raises the ForeCanvasSizeChanged event.
Public Method onItemChanged Raises the ItemChanged event.
Public Method onItemDragDrop Raises the ItemDragDrop event.
Public Method onItemError Raises the ItemError event.
Public Method onPostRender Raises the PostRender event.
Public Method onPostRenderItem Raises the PostRenderItem event.
Public Method onPreRender Raises the PreRender event.
Public Method onPreRenderItem Raises the PreRenderItem event.
Public Method onPropertyChanged Raises the PropertyChanged event.
Public Method onRedirectRender Raises the RedirectRender event.
Public Method onRender Raises the Render event.
Public Method onRenderBackground Raises the RenderBackground event.
Public Method onRenderBorder Raises the RenderBorder event.
Public Method onRenderError Raises the RenderError event.
Public Method onRenderImage Raises the RenderImage event.
Public Method onRenderItem Raises the RenderItem event.
Public Method onRenderItemFloater Raises the RenderItemFloater event.
Public Method onRenderItemFloaterRegion Raises the RenderItemFloaterRegion event.
Public Method onRenderItemRegion Raises the RenderItemRegion event.
Public Method onRenderShadow Raises the RenderShadow event.
Public Method onRenderText Raises the RenderText event.
Public Method onScrollOffsetChanged Raises the ScrollOffsetChanged event.
Public Method onSelectedItemsChanged Raises the SelectedItemsChanged event.
Public Method onSizeChanged Informs the control that the size of the container has changed.
Public Method onTransformChanged Raises the OnTransformChanged event.
Public Method processDragDropUrl Processes the image dropped on this ImageViewer during a drag/drop operation.
Public Method renderRedirect Renders the content of the viewer to an external context.
Public Method reset Resets the display properties to their default values (single item mode).
Public Method restrictScrollOffset Ensures a scroll position is inside the minimum and maximum scroll value currently allowed.
Public Method scrollBy Scrolls the viewer by the specified amount in pixels.
Public Method scrollByRestrict Scrolls the viewer by the specified amount in pixels while always restricting the value to the current minimum and maximum allowed.
Public Method setItemFloater Sets the floater for an item.
Public Method stopInertiaScroll Stops any inertia scroll operations.
Public Method static  | Shared in VB sync Establishes sync groups.
Public Method translateItemScaleFactor Translates an item horizontally or vertically a given amount of pixels, regardless of the current zoom value.
Public Method static  | Shared in VB unsync Removes a single viewer from the sync group.
Public Method static  | Shared in VB unsyncGroup Un-syncs all members of the sync group of the given sync ID.
Public Method updateStyles Informs the viewer that the CSS classes used have been changed.
Public Method updateTransform Re-calculates the transformation matrices and update the view layout.
Public Method zoom Zooms or changes the size mode of the view.
Public Method zoomToRect Zooms the view to the specified rectangle.

See Also

ImageViewer Class

Leadtools.Controls Namespace

Help Version 22.0.2021.9.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.