LAUREL BRIDGE

DoubleBufferedPanel Class

DICOM Connectivity Framework V3.4
Double buffered scrollable control with added support for zooming and panning.
Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    System.ComponentModelComponent
      System.Windows.FormsControl
        System.Windows.FormsScrollableControl
          LaurelBridge.DCF.Examples.ImageViewerDoubleBufferedPanel

Namespace:  LaurelBridge.DCF.Examples.ImageViewer
Assembly:  ImageViewer (in ImageViewer.exe) Version: DCF34 r10560 DCF_3_4_10
Syntax

C#
public class DoubleBufferedPanel : ScrollableControl

The DoubleBufferedPanel type exposes the following members.

Constructors

  NameDescription
Public methodDoubleBufferedPanel
Original source for zooming and panning from http://www.bobpowell.net/zoompicbox.htm, http://www.codeproject.com/Articles/319382/Creating-a-scrollable-and-zoomable-image-viewer-in Default constructor, initializing zoom and pan variables.
Top
Properties

  NameDescription
Public propertyClientRectangleMax
Returns the size (rectangle) of the current display control. Useful when calling zoom to window.
Public propertyEnablePan
Enable Panning of the loaded image
Public propertyEnableZoom
Enable Zooming of the loaded image
Public propertyImage
Bitmap image to display
Public propertyInterpolationMode
The interpolation mode used to determine how intermediate values between two end points are calculated
Public propertyPanning
Boolean set to dictate when user is panning an image.
Public propertyZoom
Zoom scale factor.
Top
Methods

  NameDescription
Protected methodDispose
Clean up any resources being used.
(Overrides ControlDispose(Boolean).)
Protected methodOnMouseDown
OnMouseDown event override.
(Overrides ControlOnMouseDown(MouseEventArgs).)
Protected methodOnMouseMove
OnMouseMove event override.
(Overrides ControlOnMouseMove(MouseEventArgs).)
Protected methodOnMouseUp
OnMouseUp event override.
(Overrides ControlOnMouseUp(MouseEventArgs).)
Protected methodOnPaint
OnPaint event override.
(Overrides ControlOnPaint(PaintEventArgs).)
Protected methodOnPaintBackground
OnPaintBackground event override.
(Overrides ScrollableControlOnPaintBackground(PaintEventArgs).)
Protected methodOnPanning
Pan changed event called when panning an image
Protected methodOnZoomChanged
Zoom changed event called when setting the Zoom property of the current image.
Public methodResetZoom
Reset the image zoom to fit to window and resets the zoom index
Protected methodUpdateScaleFactor
Adjust the auto scroll size given the current apparent image size
Protected methodUpdateScrollPosition
Update the current auto scroll position and redraw the image
Public methodZoomToWindow
Fit the loaded image to fill the current screen.
Top
Events

  NameDescription
Public eventPanChanged
PanChanged event.
Public eventZoomChanged
ZoomChanged event.
Top
See Also

Reference