←Select platform
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 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 LeadPoint 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 DisableSync Temporarily disable syncing for a group while keeping the group itself intact.
Public Method EnableSync Re-enable syncing for a group.
Public Method EndRender Instruct the viewer that updates are completed and rendering of content can be resumed.
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 an array of all the visible ImageViewerItems for the specified ImageViewerItemPart.
Public Method 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 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 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 (in control pixel coordinates) bounds 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 GetScaleFactors Utility method to calculate the scale factor needed to perform the specified size mode using a source and destination size.
Public Method 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 Scroll to the top-left of an item giving 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 (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 IsSyncDisabled Determines if syncing for a group has been disabled.
Public Method OnTransformChanged Raises the OnTransformChanged event.
Public Method OnVirtualizeItemReady Raises the VirtualizeItemReady event.
Public Method RenderRedirect Render 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 StopInertiaScroll Stops any inertia scrolling.
Public Method 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 Unsync Removes a single viewer from the sync group.
Public Method UnsyncGroup Un-syncs all members of the sync group of the given sync ID.
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.

Protected Methods

Name Description
Protected Method Dispose(bool) Clean up any resources being used.
Protected Method GetItemImageTransformScaleOnly Transformation matrix of the image of an item without translation and rotation.
Protected Method IsInputKey Overrides System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys).
Protected Method OnActiveItemChanged Raises the ActiveItemChanged event.
Protected Method OnDragDrop Overrides System.Windows.Forms.Control.OnDragDrop(System.Windows.Forms.DragEventArgs).
Protected Method OnDragEnter Overrides System.Windows.Forms.Control.OnDragEnter(System.Windows.Forms.DragEventArgs).
Protected Method OnDragLeave Overrides System.Windows.Forms.Control.OnDragLeave(System.EventArgs).
Protected Method OnDragOver Overrides System.Windows.Forms.Control.OnDragOver(System.Windows.Forms.DragEventArgs).
Protected Method OnItemChanged Raises the ItemChanged event.
Protected Method OnItemDragDrop Raises the ItemDragDrop event.
Protected Method OnItemError Raises the ItemError event.
Protected Method OnMouseDown Overrides System.Windows.Forms.Control.OnMouseDown(System.Windows.Forms.MouseEventArgs).
Protected Method OnPaint Overrides System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs).
Protected Method OnPaintBackground Overrides System.Windows.Forms.Control.OnPaintBackground(System.Windows.Forms.PaintEventArgs).
Protected Method OnPostRender Raises the PostRender event.
Protected Method OnPostRenderItem Raises the PostRenderItem event.
Protected Method OnPreRender Raises the PreRender event.
Protected Method OnPreRenderItem Raises the PreRenderItem event.
Protected Method OnPropertyChanged Raises the PropertyChanged event.
Protected Method OnRedirectRender Raises the RedirectRender event.
Protected Method OnRender Raises the Render event.
Protected Method OnRenderBackground Raises the RenderBackground event.
Protected Method OnRenderBorder Raises the RenderBorder event.
Protected Method OnRenderError Raises the RenderError event.
Protected Method OnRenderImage Raises the RenderImage event.
Protected Method OnRenderItem Raises the RenderItem event.
Protected Method OnRenderItemFloater Raises the RenderItemFloater event.
Protected Method OnRenderItemFloaterRegion Raises the RenderItemFloaterRegion event.
Protected Method OnRenderItemRegion Raises the RenderItemRegion event.
Protected Method OnRenderShadow Raises the RenderShadow event.
Protected Method OnRenderText Raises the RenderText event.
Protected Method OnScrollOffsetChanged Raises the ScrollOffsetChanged event.
Protected Method OnSelectedItemsChanged Raises the SelectedItemsChanged event.
Protected Method OnSizeChanged Overrides System.Windows.Forms.Control.OnSizeChanged(System.EventArgs).
Protected Method ProcessDropImage Processes the image dropped on this ImageViewer during a drag/drop operation.
Protected Method WndProc Overrides System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message@).

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

Leadtools.Controls Assembly