C# 클래스 ImageGlass.ImageBox

상속: System.Windows.Forms.Control
파일 보기 프로젝트 열기: d2phap/ImageGlass

Private Properties

프로퍼티 타입 설명
Clamp int
DefineViewSize void
GetImageSize System.Drawing.Size
GetZoomLevel int
InitializeGridTile void
OnFrameChangedHandler void
PerformActualSize void
PerformZoom void
PerformZoom void
PerformZoomIn void
PerformZoomOut void
ScrollBarScrollHandler void
SetZoom void
ShouldShowScrollbar bool
UpdateScrollbars void

공개 메소드들

메소드 설명
ActualSize ( ) : void

Resets the zoom to 100%.

BeginUpdate ( ) : void

Disables any redrawing of the image box

CenterAt ( Point imageLocation ) : void

Centers the given point in the image in the center of the control

CenterAt ( float x, float y ) : void

Centers the given point in the image in the center of the control

CenterAt ( int x, int y ) : void

Centers the given point in the image in the center of the control

CenterToImage ( ) : void

Resets the viewport to show the center of the image.

CreateCheckerBoxTile ( ) : Bitmap

Creates a checked tile texture using default values.

CreateCheckerBoxTile ( int cellSize, Color cellColor, Color alternateCellColor ) : Bitmap

Creates a bitmap image containing a 2x2 grid using the specified cell size and colors.

EndUpdate ( ) : void

Enables the redrawing of the image box

FitRectangle ( Rectangle rectangle ) : Rectangle

Fits a given T:System.Drawing.Rectangle to match image boundaries

FitRectangle ( RectangleF rectangle ) : RectangleF

Fits a given T:System.Drawing.RectangleF to match image boundaries

GetImageViewPort ( ) : Rectangle

Gets the image view port.

GetInsideViewPort ( ) : Rectangle

Gets the inside view port, excluding any padding.

GetInsideViewPort ( bool includePadding ) : Rectangle

Gets the inside view port.

GetOffsetPoint ( Point source ) : Point

Returns the source T:System.Drawing.Point repositioned to include the current image offset and scaled by the current zoom level

GetOffsetPoint ( int x, int y ) : Point

Returns the source co-ordinates repositioned to include the current image offset and scaled by the current zoom level

GetOffsetPoint ( PointF source ) : PointF

Returns the source T:System.Drawing.PointF repositioned to include the current image offset and scaled by the current zoom level

GetOffsetPoint ( float x, float y ) : PointF

Returns the source co-ordinates repositioned to include the current image offset and scaled by the current zoom level

GetOffsetRectangle ( Rectangle source ) : Rectangle

Returns the source T:System.Drawing.Rectangle scaled according to the current zoom level and repositioned to include the current image offset

GetOffsetRectangle ( int x, int y, int width, int height ) : Rectangle

Returns the source rectangle scaled according to the current zoom level and repositioned to include the current image offset

GetOffsetRectangle ( RectangleF source ) : RectangleF

Returns the source T:System.Drawing.RectangleF scaled according to the current zoom level and repositioned to include the current image offset

GetOffsetRectangle ( float x, float y, float width, float height ) : RectangleF

Returns the source rectangle scaled according to the current zoom level and repositioned to include the current image offset

GetPreferredSize ( Size proposedSize ) : Size

Retrieves the size of a rectangular area into which a control can be fitted.

GetScaledPoint ( Point source ) : Point

Returns the source T:System.Drawing.Point scaled according to the current zoom level

GetScaledPoint ( int x, int y ) : Point

Returns the source T:System.Drawing.Point scaled according to the current zoom level

GetScaledPoint ( PointF source ) : PointF

Returns the source T:System.Drawing.PointF scaled according to the current zoom level

GetScaledPoint ( float x, float y ) : PointF

Returns the source T:System.Drawing.Point scaled according to the current zoom level

GetScaledRectangle ( Point location, Size size ) : Rectangle

Returns the source rectangle scaled according to the current zoom level

GetScaledRectangle ( Rectangle source ) : Rectangle

Returns the source T:System.Drawing.Rectangle scaled according to the current zoom level

GetScaledRectangle ( int x, int y, int width, int height ) : Rectangle

Returns the source rectangle scaled according to the current zoom level

GetScaledRectangle ( PointF location, SizeF size ) : RectangleF

Returns the source rectangle scaled according to the current zoom level

GetScaledRectangle ( RectangleF source ) : RectangleF

Returns the source T:System.Drawing.RectangleF scaled according to the current zoom level

GetScaledRectangle ( float x, float y, float width, float height ) : RectangleF

Returns the source rectangle scaled according to the current zoom level

GetScaledSize ( Size source ) : Size

Returns the source T:System.Drawing.Size scaled according to the current zoom level

GetScaledSize ( int width, int height ) : Size

Returns the source size scaled according to the current zoom level

GetScaledSize ( SizeF source ) : SizeF

Returns the source T:System.Drawing.SizeF scaled according to the current zoom level

GetScaledSize ( float width, float height ) : SizeF

Returns the source size scaled according to the current zoom level

GetSelectedImage ( ) : Image

Creates an image based on the current selection region

The caller is responsible for disposing of the returned image

GetSourceImageRegion ( ) : RectangleF

Gets the source image region.

ImageBox ( ) : System

Initializes a new instance of the ImageBox class.

IsPointInImage ( Point point ) : bool

Determines whether the specified point is located within the image view port

IsPointInImage ( float x, float y ) : bool

Determines whether the specified point is located within the image view port

IsPointInImage ( int x, int y ) : bool

Determines whether the specified point is located within the image view port

PointToImage ( Point point ) : Point

Converts the given client size point to represent a coordinate on the source image.

PointToImage ( Point point, bool fitToBounds ) : Point

Converts the given client size point to represent a coordinate on the source image.

PointToImage ( float x, float y ) : Point

Converts the given client size point to represent a coordinate on the source image.

PointToImage ( float x, float y, bool fitToBounds ) : Point

Converts the given client size point to represent a coordinate on the source image.

PointToImage ( int x, int y ) : Point

Converts the given client size point to represent a coordinate on the source image.

PointToImage ( int x, int y, bool fitToBounds ) : Point

Converts the given client size point to represent a coordinate on the source image.

ScrollTo ( Point imageLocation, Point relativeDisplayPoint ) : void

Scrolls the control to the given point in the image, offset at the specified display point

ScrollTo ( float x, float y, float relativeX, float relativeY ) : void

Scrolls the control to the given point in the image, offset at the specified display point

ScrollTo ( int x, int y, int relativeX, int relativeY ) : void

Scrolls the control to the given point in the image, offset at the specified display point

SelectAll ( ) : void

Creates a selection region which encompasses the entire image

SelectNone ( ) : void

Clears any existing selection region

StartAnimating ( ) : void

Stop animating

StopAnimating ( ) : void

Start animating

ZoomAuto ( ) : void

[PHAP] Zooms to the maximum size for displaying the entire image within the bounds of the control. If image size is smaller than viewer size, keep its original size.

ZoomIn ( ) : void

Zooms into the image

ZoomIn ( bool preservePosition ) : void

Zooms into the image

ZoomOut ( ) : void

Zooms out of the image

ZoomOut ( bool preservePosition ) : void

Zooms out of the image

ZoomToFit ( ) : void

Zooms to the maximum size for displaying the entire image within the bounds of the control.

ZoomToRegion ( RectangleF rectangle ) : void

Adjusts the view port to fit the given region

ZoomToRegion ( float x, float y, float width, float height ) : void

Adjusts the view port to fit the given region

ZoomToRegion ( int x, int y, int width, int height ) : void

Adjusts the view port to fit the given region

보호된 메소드들

메소드 설명
AdjustLayout ( ) : void

Adjusts the layout.

AdjustScroll ( int x, int y ) : void

Adjusts the scroll.

AdjustSize ( ) : void

Adjusts the size.

AdjustViewPort ( ) : void

Adjusts the view port.

CreateGridTileImage ( int cellSize, Color firstColor, Color secondColor ) : Bitmap

Creates the grid tile image.

Dispose ( bool disposing ) : void

Clean up any resources being used.

DrawBackground ( PaintEventArgs e ) : void

Draws the background of the control.

DrawDropShadow ( Graphics g, Rectangle viewPort ) : void

Draws a drop shadow.

DrawGlowShadow ( Graphics g, Rectangle viewPort ) : void

Draws a glow shadow.

DrawImage ( Graphics g ) : void

Draws the image.

DrawImageBorder ( Graphics graphics ) : void

Draws a border around the image.

DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, ContentAlignment textAlign, Rectangle bounds ) : void

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.

DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, ContentAlignment textAlign, Rectangle bounds, bool scaleText ) : void

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.

DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, ContentAlignment textAlign, Rectangle bounds, bool scaleText, Padding padding ) : void

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.

DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, Rectangle bounds ) : void

Draws the specified text within the specified bounds using the specified device context, font, color, and back color.

DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Rectangle bounds ) : void

Draws the specified text within the specified bounds using the specified device context, font, and color.

DrawLabel ( Graphics graphics, string text, Font font, Rectangle bounds ) : void

Draws the specified text within the specified bounds using the specified device context and font.

DrawLabel ( Graphics graphics, string text, Rectangle bounds ) : void

Draws the specified text within the specified bounds using the specified device context.

DrawPixelGrid ( Graphics g ) : void

Draws a pixel grid.

DrawSelection ( PaintEventArgs e ) : void

Draws the selection region.

DrawText ( PaintEventArgs e ) : void

Draws the text.

EndDrag ( ) : void

Completes an ongoing selection or drag operation.

GetImageBorderOffset ( ) : int

Gets an offset based on the current image border style.

GetInterpolationMode ( ) : InterpolationMode

Determines a suitable interpolation mode based in the value of the InterpolationMode and Zoom properties.

IsInputKey ( Keys keyData ) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnAllowClickZoomChanged ( EventArgs e ) : void

Raises the AllowClickZoomChanged event.

OnAllowDoubleClickChanged ( EventArgs e ) : void

Raises the AllowDoubleClickChanged event.

OnAllowUnfocusedMouseWheelChanged ( EventArgs e ) : void

Raises the AllowUnfocusedMouseWheelChanged event.

OnAllowZoomChanged ( EventArgs e ) : void

Raises the AllowZoomChanged event.

OnAutoCenterChanged ( EventArgs e ) : void

Raises the AutoCenterChanged event.

OnAutoPanChanged ( EventArgs e ) : void

Raises the AutoPanChanged event.

OnBackColorChanged ( EventArgs e ) : void

Raises the System.Windows.Forms.Control.BackColorChanged event.

OnBorderStyleChanged ( EventArgs e ) : void

Raises the BorderStyleChanged event.

OnDockChanged ( EventArgs e ) : void

Raises the System.Windows.Forms.Control.DockChanged event.

OnDropShadowSizeChanged ( EventArgs e ) : void

Raises the DropShadowSizeChanged event.

OnFontChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.FontChanged event.

OnForeColorChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.ForeColorChanged event.

OnGridCellSizeChanged ( EventArgs e ) : void

Raises the GridCellSizeChanged event.

OnGridColorAlternateChanged ( EventArgs e ) : void

Raises the GridColorAlternateChanged event.

OnGridColorChanged ( EventArgs e ) : void

Raises the GridColorChanged event.

OnGridDisplayModeChanged ( EventArgs e ) : void

Raises the GridDisplayModeChanged event.

OnGridScaleChanged ( EventArgs e ) : void

Raises the GridScaleChanged event.

OnHorizontalScrollBarStyleChanged ( EventArgs e ) : void

Raises the HorizontalScrollBarStyleChanged event.

OnImageBorderColorChanged ( EventArgs e ) : void

Raises the ImageBorderColorChanged event.

OnImageBorderStyleChanged ( EventArgs e ) : void

Raises the ImageBorderStyleChanged event.

OnImageChanged ( EventArgs e ) : void

Raises the ImageChanged event.

OnInterpolationModeChanged ( EventArgs e ) : void

Raises the InterpolationModeChanged event.

OnInvertMouseChanged ( EventArgs e ) : void

Raises the InvertMouseChanged event.

OnKeyDown ( KeyEventArgs e ) : void

Raises the System.Windows.Forms.Control.KeyDown event.

OnLimitSelectionToImageChanged ( EventArgs e ) : void

Raises the LimitSelectionToImageChanged event.

OnMouseDown ( MouseEventArgs e ) : void

Raises the System.Windows.Forms.Control.MouseDown event.

OnMouseMove ( MouseEventArgs e ) : void

Raises the System.Windows.Forms.Control.MouseMove event.

OnMouseUp ( MouseEventArgs e ) : void

Raises the System.Windows.Forms.Control.MouseUp event.

OnMouseWheel ( MouseEventArgs e ) : void

Raises the System.Windows.Forms.Control.MouseWheel event.

OnPaddingChanged ( EventArgs e ) : void

Raises the System.Windows.Forms.Control.PaddingChanged event.

OnPaint ( PaintEventArgs e ) : void

Raises the System.Windows.Forms.Control.Paint event.

OnPanEnd ( EventArgs e ) : void

Raises the PanEnd event.

OnPanStart ( CancelEventArgs e ) : void

Raises the PanStart event.

OnParentChanged ( EventArgs e ) : void

Raises the System.Windows.Forms.Control.ParentChanged event.

OnPixelGridColorChanged ( EventArgs e ) : void

Raises the PixelGridColorChanged event.

OnPixelGridThresholdChanged ( EventArgs e ) : void

Raises the PixelGridThresholdChanged event.

OnResize ( EventArgs e ) : void

Raises the System.Windows.Forms.Control.Resize event.

OnScaleTextChanged ( EventArgs e ) : void

Raises the ScaleTextChanged event.

OnScroll ( ScrollEventArgs e ) : void

Raises the Scroll event.

OnSelected ( EventArgs e ) : void

Raises the Selected event.

OnSelecting ( ImageBoxCancelEventArgs e ) : void

Raises the Selecting event.

OnSelectionColorChanged ( EventArgs e ) : void

Raises the SelectionColorChanged event.

OnSelectionModeChanged ( EventArgs e ) : void

Raises the SelectionModeChanged event.

OnSelectionRegionChanged ( EventArgs e ) : void

Raises the SelectionRegionChanged event.

OnShortcutsEnabledChanged ( EventArgs e ) : void

Raises the ShortcutsEnabledChanged event.

OnShowPixelGridChanged ( EventArgs e ) : void

Raises the ShowPixelGridChanged event.

OnSizeModeChanged ( EventArgs e ) : void

Raises the SizeModeChanged event.

OnSizeToFitChanged ( EventArgs e ) : void

Raises the SizeToFitChanged event.

OnTextAlignChanged ( EventArgs e ) : void

Raises the TextAlignChanged event.

OnTextBackColorChanged ( EventArgs e ) : void

Raises the TextBackColorChanged event.

OnTextChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.TextChanged event.

OnTextDisplayModeChanged ( EventArgs e ) : void

Raises the TextDisplayModeChanged event.

OnTextPaddingChanged ( EventArgs e ) : void

Raises the TextPaddingChanged event.

OnVerticalScrollBarStyleChanged ( EventArgs e ) : void

Raises the VerticalScrollBarStyleChanged event.

OnVirtualDraw ( PaintEventArgs e ) : void

Raises the VirtualDraw event.

OnVirtualModeChanged ( EventArgs e ) : void

Raises the VirtualModeChanged event.

OnVirtualSizeChanged ( EventArgs e ) : void

Raises the VirtualSizeChanged event.

OnZoomChanged ( EventArgs e ) : void

Raises the ZoomChanged event.

OnZoomLevelsChanged ( EventArgs e ) : void

Raises the ZoomLevelsChanged event.

OnZoomed ( ImageBoxZoomEventArgs e ) : void

Raises the Zoomed event.

ProcessImageShortcuts ( KeyEventArgs e ) : void

Processes shortcut keys for zooming and selection

ProcessMouseZoom ( bool isZoomIn, Point cursorPosition ) : void

Processes zooming with the mouse. Attempts to keep the pre-zoom image pixel under the mouse after the zoom has completed.

ProcessPanning ( MouseEventArgs e ) : void

Performs mouse based panning

ProcessScrollingShortcuts ( KeyEventArgs e ) : void

Processes shortcut keys for scrolling

ProcessSelection ( MouseEventArgs e ) : void

Performs mouse based region selection

RestoreSizeMode ( ) : void

Resets the SizeMode property whilsts retaining the original Zoom.

Scale ( int value ) : int

Scales the specified integer according to the current zoom factor.

StartDrag ( MouseEventArgs e ) : void

Initializes a selection or drag operation.

UpdateScrollPosition ( Point position ) : void

Updates the scroll position.

비공개 메소드들

메소드 설명
Clamp ( int value, int min, int max ) : int

Clamps the specified value within the given range.

DefineViewSize ( ) : void

Defines the view sized based on the current image and if the control is operating in virtual mode or not

GetImageSize ( ) : Size

Gets the size of the image.

If an error occurs, for example due to the image being disposed, an empty size is returned

GetZoomLevel ( ImageBoxZoomActions action ) : int

Returns an appropriate zoom level based on the specified action, relative to the current zoom level.

InitializeGridTile ( ) : void

Initializes the grid tile.

OnFrameChangedHandler ( object sender, EventArgs eventArgs ) : void

Called when the animation frame changes.

PerformActualSize ( ImageBoxActionSources source ) : void

Resets the zoom to 100%.

PerformZoom ( ImageBoxZoomActions action, ImageBoxActionSources source, bool preservePosition ) : void

Performs a zoom action.

PerformZoom ( ImageBoxZoomActions action, ImageBoxActionSources source, bool preservePosition, Point relativePoint ) : void

Performs a zoom action.

PerformZoomIn ( ImageBoxActionSources source, bool preservePosition ) : void

Zooms into the image

PerformZoomOut ( ImageBoxActionSources source, bool preservePosition ) : void

Zooms out of the image

ScrollBarScrollHandler ( object sender, ScrollEventArgs e ) : void

Handles the Scroll event of the embedded horizontal and vertical scroll bar controls.

SetZoom ( int value, ImageBoxZoomActions actions, ImageBoxActionSources source ) : void

Updates the current zoom.

ShouldShowScrollbar ( ImageBoxScrollBarStyle style, bool visible ) : bool

Determines if a scroll bar should be displayed.

UpdateScrollbars ( ) : void

Updates all properties of the embedded scroll bar controls.

메소드 상세

ActualSize() 공개 메소드

Resets the zoom to 100%.
public ActualSize ( ) : void
리턴 void

AdjustLayout() 보호된 메소드

Adjusts the layout.
protected AdjustLayout ( ) : void
리턴 void

AdjustScroll() 보호된 메소드

Adjusts the scroll.
protected AdjustScroll ( int x, int y ) : void
x int The x.
y int The y.
리턴 void

AdjustSize() 보호된 메소드

Adjusts the size.
protected AdjustSize ( ) : void
리턴 void

AdjustViewPort() 보호된 메소드

Adjusts the view port.
protected AdjustViewPort ( ) : void
리턴 void

BeginUpdate() 공개 메소드

Disables any redrawing of the image box
public BeginUpdate ( ) : void
리턴 void

CenterAt() 공개 메소드

Centers the given point in the image in the center of the control
public CenterAt ( Point imageLocation ) : void
imageLocation Point The point of the image to attempt to center.
리턴 void

CenterAt() 공개 메소드

Centers the given point in the image in the center of the control
public CenterAt ( float x, float y ) : void
x float The X co-ordinate of the point to center.
y float The Y co-ordinate of the point to center.
리턴 void

CenterAt() 공개 메소드

Centers the given point in the image in the center of the control
public CenterAt ( int x, int y ) : void
x int The X co-ordinate of the point to center.
y int The Y co-ordinate of the point to center.
리턴 void

CenterToImage() 공개 메소드

Resets the viewport to show the center of the image.
public CenterToImage ( ) : void
리턴 void

CreateCheckerBoxTile() 공개 정적인 메소드

Creates a checked tile texture using default values.
public static CreateCheckerBoxTile ( ) : Bitmap
리턴 System.Drawing.Bitmap

CreateCheckerBoxTile() 공개 정적인 메소드

Creates a bitmap image containing a 2x2 grid using the specified cell size and colors.
public static CreateCheckerBoxTile ( int cellSize, Color cellColor, Color alternateCellColor ) : Bitmap
cellSize int Size of the cell.
cellColor Color Cell color.
alternateCellColor Color Alternate cell color.
리턴 System.Drawing.Bitmap

CreateGridTileImage() 보호된 메소드

Creates the grid tile image.
protected CreateGridTileImage ( int cellSize, Color firstColor, Color secondColor ) : Bitmap
cellSize int Size of the cell.
firstColor Color The first color.
secondColor Color Color of the second.
리턴 System.Drawing.Bitmap

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

DrawBackground() 보호된 메소드

Draws the background of the control.
protected DrawBackground ( PaintEventArgs e ) : void
e PaintEventArgs The instance containing the event data.
리턴 void

DrawDropShadow() 보호된 메소드

Draws a drop shadow.
protected DrawDropShadow ( Graphics g, Rectangle viewPort ) : void
g System.Drawing.Graphics The graphics.
viewPort System.Drawing.Rectangle The view port.
리턴 void

DrawGlowShadow() 보호된 메소드

Draws a glow shadow.
protected DrawGlowShadow ( Graphics g, Rectangle viewPort ) : void
g System.Drawing.Graphics The graphics.
viewPort System.Drawing.Rectangle The view port.
리턴 void

DrawImage() 보호된 메소드

Draws the image.
protected DrawImage ( Graphics g ) : void
g System.Drawing.Graphics The g.
리턴 void

DrawImageBorder() 보호된 메소드

Draws a border around the image.
protected DrawImageBorder ( Graphics graphics ) : void
graphics System.Drawing.Graphics The graphics.
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.
protected DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, ContentAlignment textAlign, Rectangle bounds ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
font System.Drawing.Font The to apply to the drawn text.
foreColor Color The to apply to the text.
backColor Color The to apply to the area represented by bounds.
textAlign ContentAlignment The to apply to the text.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.
protected DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, ContentAlignment textAlign, Rectangle bounds, bool scaleText ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
font System.Drawing.Font The to apply to the drawn text.
foreColor Color The to apply to the text.
backColor Color The to apply to the area represented by bounds.
textAlign ContentAlignment The to apply to the text.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
scaleText bool If set to true the font size is scaled according to the current zoom level.
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context, font, color, back color, and formatting instructions.
protected DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, ContentAlignment textAlign, Rectangle bounds, bool scaleText, Padding padding ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
font System.Drawing.Font The to apply to the drawn text.
foreColor Color The to apply to the text.
backColor Color The to apply to the area represented by bounds.
textAlign ContentAlignment The to apply to the text.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
scaleText bool If set to true the font size is scaled according to the current zoom level.
padding Padding Padding to apply around the text
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context, font, color, and back color.
protected DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Color backColor, Rectangle bounds ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
font System.Drawing.Font The to apply to the drawn text.
foreColor Color The to apply to the text.
backColor Color The to apply to the area represented by bounds.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context, font, and color.
protected DrawLabel ( Graphics graphics, string text, Font font, Color foreColor, Rectangle bounds ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
font System.Drawing.Font The to apply to the drawn text.
foreColor Color The to apply to the text.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context and font.
protected DrawLabel ( Graphics graphics, string text, Font font, Rectangle bounds ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
font System.Drawing.Font The to apply to the drawn text.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
리턴 void

DrawLabel() 보호된 메소드

Draws the specified text within the specified bounds using the specified device context.
protected DrawLabel ( Graphics graphics, string text, Rectangle bounds ) : void
graphics System.Drawing.Graphics The device context in which to draw the text.
text string The text to draw.
bounds System.Drawing.Rectangle The that represents the bounds of the text.
리턴 void

DrawPixelGrid() 보호된 메소드

Draws a pixel grid.
protected DrawPixelGrid ( Graphics g ) : void
g System.Drawing.Graphics The graphics to draw the grid to.
리턴 void

DrawSelection() 보호된 메소드

Draws the selection region.
protected DrawSelection ( PaintEventArgs e ) : void
e PaintEventArgs /// The instance containing the event data. ///
리턴 void

DrawText() 보호된 메소드

Draws the text.
protected DrawText ( PaintEventArgs e ) : void
e PaintEventArgs The instance containing the event data.
리턴 void

EndDrag() 보호된 메소드

Completes an ongoing selection or drag operation.
protected EndDrag ( ) : void
리턴 void

EndUpdate() 공개 메소드

Enables the redrawing of the image box
public EndUpdate ( ) : void
리턴 void

FitRectangle() 공개 메소드

Fits a given T:System.Drawing.Rectangle to match image boundaries
public FitRectangle ( Rectangle rectangle ) : Rectangle
rectangle System.Drawing.Rectangle The rectangle.
리턴 System.Drawing.Rectangle

FitRectangle() 공개 메소드

Fits a given T:System.Drawing.RectangleF to match image boundaries
public FitRectangle ( RectangleF rectangle ) : RectangleF
rectangle System.Drawing.RectangleF The rectangle.
리턴 System.Drawing.RectangleF

GetImageBorderOffset() 보호된 메소드

Gets an offset based on the current image border style.
protected GetImageBorderOffset ( ) : int
리턴 int

GetImageViewPort() 공개 메소드

Gets the image view port.
public GetImageViewPort ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetInsideViewPort() 공개 메소드

Gets the inside view port, excluding any padding.
public GetInsideViewPort ( ) : Rectangle
리턴 System.Drawing.Rectangle

GetInsideViewPort() 공개 메소드

Gets the inside view port.
public GetInsideViewPort ( bool includePadding ) : Rectangle
includePadding bool /// if set to true [include padding]. ///
리턴 System.Drawing.Rectangle

GetInterpolationMode() 보호된 메소드

Determines a suitable interpolation mode based in the value of the InterpolationMode and Zoom properties.
protected GetInterpolationMode ( ) : InterpolationMode
리턴 InterpolationMode

GetOffsetPoint() 공개 메소드

Returns the source T:System.Drawing.Point repositioned to include the current image offset and scaled by the current zoom level
public GetOffsetPoint ( Point source ) : Point
source Point The source to offset.
리턴 Point

GetOffsetPoint() 공개 메소드

Returns the source co-ordinates repositioned to include the current image offset and scaled by the current zoom level
public GetOffsetPoint ( int x, int y ) : Point
x int The source X co-ordinate.
y int The source Y co-ordinate.
리턴 Point

GetOffsetPoint() 공개 메소드

Returns the source T:System.Drawing.PointF repositioned to include the current image offset and scaled by the current zoom level
public GetOffsetPoint ( PointF source ) : PointF
source System.Drawing.PointF The source to offset.
리턴 System.Drawing.PointF

GetOffsetPoint() 공개 메소드

Returns the source co-ordinates repositioned to include the current image offset and scaled by the current zoom level
public GetOffsetPoint ( float x, float y ) : PointF
x float The source X co-ordinate.
y float The source Y co-ordinate.
리턴 System.Drawing.PointF

GetOffsetRectangle() 공개 메소드

Returns the source T:System.Drawing.Rectangle scaled according to the current zoom level and repositioned to include the current image offset
public GetOffsetRectangle ( Rectangle source ) : Rectangle
source System.Drawing.Rectangle The source to offset.
리턴 System.Drawing.Rectangle

GetOffsetRectangle() 공개 메소드

Returns the source rectangle scaled according to the current zoom level and repositioned to include the current image offset
public GetOffsetRectangle ( int x, int y, int width, int height ) : Rectangle
x int The X co-ordinate of the source rectangle.
y int The Y co-ordinate of the source rectangle.
width int The width of the rectangle.
height int The height of the rectangle.
리턴 System.Drawing.Rectangle

GetOffsetRectangle() 공개 메소드

Returns the source T:System.Drawing.RectangleF scaled according to the current zoom level and repositioned to include the current image offset
public GetOffsetRectangle ( RectangleF source ) : RectangleF
source System.Drawing.RectangleF The source to offset.
리턴 System.Drawing.RectangleF

GetOffsetRectangle() 공개 메소드

Returns the source rectangle scaled according to the current zoom level and repositioned to include the current image offset
public GetOffsetRectangle ( float x, float y, float width, float height ) : RectangleF
x float The X co-ordinate of the source rectangle.
y float The Y co-ordinate of the source rectangle.
width float The width of the rectangle.
height float The height of the rectangle.
리턴 System.Drawing.RectangleF

GetPreferredSize() 공개 메소드

Retrieves the size of a rectangular area into which a control can be fitted.
public GetPreferredSize ( Size proposedSize ) : Size
proposedSize System.Drawing.Size The custom-sized area for a control.
리턴 System.Drawing.Size

GetScaledPoint() 공개 메소드

Returns the source T:System.Drawing.Point scaled according to the current zoom level
public GetScaledPoint ( Point source ) : Point
source Point The source to scale.
리턴 Point

GetScaledPoint() 공개 메소드

Returns the source T:System.Drawing.Point scaled according to the current zoom level
public GetScaledPoint ( int x, int y ) : Point
x int The X co-ordinate of the point to scale.
y int The Y co-ordinate of the point to scale.
리턴 Point

GetScaledPoint() 공개 메소드

Returns the source T:System.Drawing.PointF scaled according to the current zoom level
public GetScaledPoint ( PointF source ) : PointF
source System.Drawing.PointF The source to scale.
리턴 System.Drawing.PointF

GetScaledPoint() 공개 메소드

Returns the source T:System.Drawing.Point scaled according to the current zoom level
public GetScaledPoint ( float x, float y ) : PointF
x float The X co-ordinate of the point to scale.
y float The Y co-ordinate of the point to scale.
리턴 System.Drawing.PointF

GetScaledRectangle() 공개 메소드

Returns the source rectangle scaled according to the current zoom level
public GetScaledRectangle ( Point location, Size size ) : Rectangle
location Point The location of the source rectangle.
size System.Drawing.Size The size of the source rectangle.
리턴 System.Drawing.Rectangle

GetScaledRectangle() 공개 메소드

Returns the source T:System.Drawing.Rectangle scaled according to the current zoom level
public GetScaledRectangle ( Rectangle source ) : Rectangle
source System.Drawing.Rectangle The source to scale.
리턴 System.Drawing.Rectangle

GetScaledRectangle() 공개 메소드

Returns the source rectangle scaled according to the current zoom level
public GetScaledRectangle ( int x, int y, int width, int height ) : Rectangle
x int The X co-ordinate of the source rectangle.
y int The Y co-ordinate of the source rectangle.
width int The width of the rectangle.
height int The height of the rectangle.
리턴 System.Drawing.Rectangle

GetScaledRectangle() 공개 메소드

Returns the source rectangle scaled according to the current zoom level
public GetScaledRectangle ( PointF location, SizeF size ) : RectangleF
location System.Drawing.PointF The location of the source rectangle.
size System.Drawing.SizeF The size of the source rectangle.
리턴 System.Drawing.RectangleF

GetScaledRectangle() 공개 메소드

Returns the source T:System.Drawing.RectangleF scaled according to the current zoom level
public GetScaledRectangle ( RectangleF source ) : RectangleF
source System.Drawing.RectangleF The source to scale.
리턴 System.Drawing.RectangleF

GetScaledRectangle() 공개 메소드

Returns the source rectangle scaled according to the current zoom level
public GetScaledRectangle ( float x, float y, float width, float height ) : RectangleF
x float The X co-ordinate of the source rectangle.
y float The Y co-ordinate of the source rectangle.
width float The width of the rectangle.
height float The height of the rectangle.
리턴 System.Drawing.RectangleF

GetScaledSize() 공개 메소드

Returns the source T:System.Drawing.Size scaled according to the current zoom level
public GetScaledSize ( Size source ) : Size
source System.Drawing.Size The source to scale.
리턴 System.Drawing.Size

GetScaledSize() 공개 메소드

Returns the source size scaled according to the current zoom level
public GetScaledSize ( int width, int height ) : Size
width int The width of the size to scale.
height int The height of the size to scale.
리턴 System.Drawing.Size

GetScaledSize() 공개 메소드

Returns the source T:System.Drawing.SizeF scaled according to the current zoom level
public GetScaledSize ( SizeF source ) : SizeF
source System.Drawing.SizeF The source to scale.
리턴 System.Drawing.SizeF

GetScaledSize() 공개 메소드

Returns the source size scaled according to the current zoom level
public GetScaledSize ( float width, float height ) : SizeF
width float The width of the size to scale.
height float The height of the size to scale.
리턴 System.Drawing.SizeF

GetSelectedImage() 공개 메소드

Creates an image based on the current selection region
The caller is responsible for disposing of the returned image
public GetSelectedImage ( ) : Image
리턴 Image

GetSourceImageRegion() 공개 메소드

Gets the source image region.
public GetSourceImageRegion ( ) : RectangleF
리턴 System.Drawing.RectangleF

ImageBox() 공개 메소드

Initializes a new instance of the ImageBox class.
public ImageBox ( ) : System
리턴 System

IsInputKey() 보호된 메소드

Determines whether the specified key is a regular input key or a special key that requires preprocessing.
protected IsInputKey ( Keys keyData ) : bool
keyData Keys /// One of the values. ///
리턴 bool

IsPointInImage() 공개 메소드

Determines whether the specified point is located within the image view port
public IsPointInImage ( Point point ) : bool
point Point The point.
리턴 bool

IsPointInImage() 공개 메소드

Determines whether the specified point is located within the image view port
public IsPointInImage ( float x, float y ) : bool
x float The X co-ordinate of the point to check.
y float The Y co-ordinate of the point to check.
리턴 bool

IsPointInImage() 공개 메소드

Determines whether the specified point is located within the image view port
public IsPointInImage ( int x, int y ) : bool
x int The X co-ordinate of the point to check.
y int The Y co-ordinate of the point to check.
리턴 bool

OnAllowClickZoomChanged() 보호된 메소드

Raises the AllowClickZoomChanged event.
protected OnAllowClickZoomChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnAllowDoubleClickChanged() 보호된 메소드

Raises the AllowDoubleClickChanged event.
protected OnAllowDoubleClickChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnAllowUnfocusedMouseWheelChanged() 보호된 메소드

Raises the AllowUnfocusedMouseWheelChanged event.
protected OnAllowUnfocusedMouseWheelChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnAllowZoomChanged() 보호된 메소드

Raises the AllowZoomChanged event.
protected OnAllowZoomChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnAutoCenterChanged() 보호된 메소드

Raises the AutoCenterChanged event.
protected OnAutoCenterChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnAutoPanChanged() 보호된 메소드

Raises the AutoPanChanged event.
protected OnAutoPanChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnBackColorChanged() 보호된 메소드

Raises the System.Windows.Forms.Control.BackColorChanged event.
protected OnBackColorChanged ( EventArgs e ) : void
e System.EventArgs /// An that contains the event data. ///
리턴 void

OnBorderStyleChanged() 보호된 메소드

Raises the BorderStyleChanged event.
protected OnBorderStyleChanged ( EventArgs e ) : void
e System.EventArgs /// An that contains the event data. ///
리턴 void

OnDockChanged() 보호된 메소드

Raises the System.Windows.Forms.Control.DockChanged event.
protected OnDockChanged ( EventArgs e ) : void
e System.EventArgs /// An that contains the event data. ///
리턴 void

OnDropShadowSizeChanged() 보호된 메소드

Raises the DropShadowSizeChanged event.
protected OnDropShadowSizeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnFontChanged() 보호된 메소드

Raises the E:System.Windows.Forms.Control.FontChanged event.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
리턴 void

OnForeColorChanged() 보호된 메소드

Raises the E:System.Windows.Forms.Control.ForeColorChanged event.
protected OnForeColorChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
리턴 void

OnGridCellSizeChanged() 보호된 메소드

Raises the GridCellSizeChanged event.
protected OnGridCellSizeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnGridColorAlternateChanged() 보호된 메소드

Raises the GridColorAlternateChanged event.
protected OnGridColorAlternateChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnGridColorChanged() 보호된 메소드

Raises the GridColorChanged event.
protected OnGridColorChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnGridDisplayModeChanged() 보호된 메소드

Raises the GridDisplayModeChanged event.
protected OnGridDisplayModeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnGridScaleChanged() 보호된 메소드

Raises the GridScaleChanged event.
protected OnGridScaleChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnHorizontalScrollBarStyleChanged() 보호된 메소드

Raises the HorizontalScrollBarStyleChanged event.
protected OnHorizontalScrollBarStyleChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnImageBorderColorChanged() 보호된 메소드

Raises the ImageBorderColorChanged event.
protected OnImageBorderColorChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnImageBorderStyleChanged() 보호된 메소드

Raises the ImageBorderStyleChanged event.
protected OnImageBorderStyleChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnImageChanged() 보호된 메소드

Raises the ImageChanged event.
protected OnImageChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnInterpolationModeChanged() 보호된 메소드

Raises the InterpolationModeChanged event.
protected OnInterpolationModeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnInvertMouseChanged() 보호된 메소드

Raises the InvertMouseChanged event.
protected OnInvertMouseChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnKeyDown() 보호된 메소드

Raises the System.Windows.Forms.Control.KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs /// A that contains the event data. ///
리턴 void

OnLimitSelectionToImageChanged() 보호된 메소드

Raises the LimitSelectionToImageChanged event.
protected OnLimitSelectionToImageChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnMouseDown() 보호된 메소드

Raises the System.Windows.Forms.Control.MouseDown event.
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs /// A that contains the event data. ///
리턴 void

OnMouseMove() 보호된 메소드

Raises the System.Windows.Forms.Control.MouseMove event.
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs /// A that contains the event data. ///
리턴 void

OnMouseUp() 보호된 메소드

Raises the System.Windows.Forms.Control.MouseUp event.
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs /// A that contains the event data. ///
리턴 void

OnMouseWheel() 보호된 메소드

Raises the System.Windows.Forms.Control.MouseWheel event.
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs /// A that contains the event data. ///
리턴 void

OnPaddingChanged() 보호된 메소드

Raises the System.Windows.Forms.Control.PaddingChanged event.
protected OnPaddingChanged ( EventArgs e ) : void
e System.EventArgs /// An that contains the event data. ///
리턴 void

OnPaint() 보호된 메소드

Raises the System.Windows.Forms.Control.Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs /// A that contains the event data. ///
리턴 void

OnPanEnd() 보호된 메소드

Raises the PanEnd event.
protected OnPanEnd ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnPanStart() 보호된 메소드

Raises the PanStart event.
protected OnPanStart ( CancelEventArgs e ) : void
e CancelEventArgs /// The instance containing the event data. ///
리턴 void

OnParentChanged() 보호된 메소드

Raises the System.Windows.Forms.Control.ParentChanged event.
protected OnParentChanged ( EventArgs e ) : void
e System.EventArgs /// An that contains the event data. ///
리턴 void

OnPixelGridColorChanged() 보호된 메소드

Raises the PixelGridColorChanged event.
protected OnPixelGridColorChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnPixelGridThresholdChanged() 보호된 메소드

Raises the PixelGridThresholdChanged event.
protected OnPixelGridThresholdChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnResize() 보호된 메소드

Raises the System.Windows.Forms.Control.Resize event.
protected OnResize ( EventArgs e ) : void
e System.EventArgs /// An that contains the event data. ///
리턴 void

OnScaleTextChanged() 보호된 메소드

Raises the ScaleTextChanged event.
protected OnScaleTextChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnScroll() 보호된 메소드

Raises the Scroll event.
protected OnScroll ( ScrollEventArgs e ) : void
e System.Windows.Forms.ScrollEventArgs /// The instance containing the event data. ///
리턴 void

OnSelected() 보호된 메소드

Raises the Selected event.
protected OnSelected ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnSelecting() 보호된 메소드

Raises the Selecting event.
protected OnSelecting ( ImageBoxCancelEventArgs e ) : void
e ImageBoxCancelEventArgs /// The instance containing the event data. ///
리턴 void

OnSelectionColorChanged() 보호된 메소드

Raises the SelectionColorChanged event.
protected OnSelectionColorChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnSelectionModeChanged() 보호된 메소드

Raises the SelectionModeChanged event.
protected OnSelectionModeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnSelectionRegionChanged() 보호된 메소드

Raises the SelectionRegionChanged event.
protected OnSelectionRegionChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnShortcutsEnabledChanged() 보호된 메소드

Raises the ShortcutsEnabledChanged event.
protected OnShortcutsEnabledChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnShowPixelGridChanged() 보호된 메소드

Raises the ShowPixelGridChanged event.
protected OnShowPixelGridChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnSizeModeChanged() 보호된 메소드

Raises the SizeModeChanged event.
protected OnSizeModeChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnSizeToFitChanged() 보호된 메소드

Raises the SizeToFitChanged event.
protected OnSizeToFitChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnTextAlignChanged() 보호된 메소드

Raises the TextAlignChanged event.
protected OnTextAlignChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnTextBackColorChanged() 보호된 메소드

Raises the TextBackColorChanged event.
protected OnTextBackColorChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnTextChanged() 보호된 메소드

Raises the E:System.Windows.Forms.Control.TextChanged event.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs An that contains the event data.
리턴 void

OnTextDisplayModeChanged() 보호된 메소드

Raises the TextDisplayModeChanged event.
protected OnTextDisplayModeChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnTextPaddingChanged() 보호된 메소드

Raises the TextPaddingChanged event.
protected OnTextPaddingChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnVerticalScrollBarStyleChanged() 보호된 메소드

Raises the VerticalScrollBarStyleChanged event.
protected OnVerticalScrollBarStyleChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
리턴 void

OnVirtualDraw() 보호된 메소드

Raises the VirtualDraw event.
protected OnVirtualDraw ( PaintEventArgs e ) : void
e PaintEventArgs /// The instance containing the event data. ///
리턴 void

OnVirtualModeChanged() 보호된 메소드

Raises the VirtualModeChanged event.
protected OnVirtualModeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnVirtualSizeChanged() 보호된 메소드

Raises the VirtualSizeChanged event.
protected OnVirtualSizeChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnZoomChanged() 보호된 메소드

Raises the ZoomChanged event.
protected OnZoomChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnZoomLevelsChanged() 보호된 메소드

Raises the ZoomLevelsChanged event.
protected OnZoomLevelsChanged ( EventArgs e ) : void
e System.EventArgs /// The instance containing the event data. ///
리턴 void

OnZoomed() 보호된 메소드

Raises the Zoomed event.
protected OnZoomed ( ImageBoxZoomEventArgs e ) : void
e ImageBoxZoomEventArgs The instance containing the event data.
리턴 void

PointToImage() 공개 메소드

Converts the given client size point to represent a coordinate on the source image.
public PointToImage ( Point point ) : Point
point Point The source point.
리턴 Point

PointToImage() 공개 메소드

Converts the given client size point to represent a coordinate on the source image.
public PointToImage ( Point point, bool fitToBounds ) : Point
point Point The source point.
fitToBounds bool /// if set to true and the point is outside the bounds of the source image, it will be mapped to the nearest edge. ///
리턴 Point

PointToImage() 공개 메소드

Converts the given client size point to represent a coordinate on the source image.
public PointToImage ( float x, float y ) : Point
x float The X co-ordinate of the point to convert.
y float The Y co-ordinate of the point to convert.
리턴 Point

PointToImage() 공개 메소드

Converts the given client size point to represent a coordinate on the source image.
public PointToImage ( float x, float y, bool fitToBounds ) : Point
x float The X co-ordinate of the point to convert.
y float The Y co-ordinate of the point to convert.
fitToBounds bool /// if set to true and the point is outside the bounds of the source image, it will be mapped to the nearest edge. ///
리턴 Point

PointToImage() 공개 메소드

Converts the given client size point to represent a coordinate on the source image.
public PointToImage ( int x, int y ) : Point
x int The X co-ordinate of the point to convert.
y int The Y co-ordinate of the point to convert.
리턴 Point

PointToImage() 공개 메소드

Converts the given client size point to represent a coordinate on the source image.
public PointToImage ( int x, int y, bool fitToBounds ) : Point
x int The X co-ordinate of the point to convert.
y int The Y co-ordinate of the point to convert.
fitToBounds bool /// if set to true and the point is outside the bounds of the source image, it will be mapped to the nearest edge. ///
리턴 Point

ProcessImageShortcuts() 보호된 메소드

Processes shortcut keys for zooming and selection
protected ProcessImageShortcuts ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs /// The instance containing the event data. ///
리턴 void

ProcessMouseZoom() 보호된 메소드

Processes zooming with the mouse. Attempts to keep the pre-zoom image pixel under the mouse after the zoom has completed.
protected ProcessMouseZoom ( bool isZoomIn, Point cursorPosition ) : void
isZoomIn bool /// if set to true zoom in, otherwise zoom out. ///
cursorPosition Point The cursor position.
리턴 void

ProcessPanning() 보호된 메소드

Performs mouse based panning
protected ProcessPanning ( MouseEventArgs e ) : void
e MouseEventArgs /// The instance containing the event data. ///
리턴 void

ProcessScrollingShortcuts() 보호된 메소드

Processes shortcut keys for scrolling
protected ProcessScrollingShortcuts ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs /// The instance containing the event data. ///
리턴 void

ProcessSelection() 보호된 메소드

Performs mouse based region selection
protected ProcessSelection ( MouseEventArgs e ) : void
e MouseEventArgs /// The instance containing the event data. ///
리턴 void

RestoreSizeMode() 보호된 메소드

Resets the SizeMode property whilsts retaining the original Zoom.
protected RestoreSizeMode ( ) : void
리턴 void

Scale() 보호된 메소드

Scales the specified integer according to the current zoom factor.
protected Scale ( int value ) : int
value int The value to scale.
리턴 int

ScrollTo() 공개 메소드

Scrolls the control to the given point in the image, offset at the specified display point
public ScrollTo ( Point imageLocation, Point relativeDisplayPoint ) : void
imageLocation Point The point of the image to attempt to scroll to.
relativeDisplayPoint Point The relative display point to offset scrolling by.
리턴 void

ScrollTo() 공개 메소드

Scrolls the control to the given point in the image, offset at the specified display point
public ScrollTo ( float x, float y, float relativeX, float relativeY ) : void
x float The X co-ordinate of the point to scroll to.
y float The Y co-ordinate of the point to scroll to.
relativeX float The X co-ordinate relative to the x parameter.
relativeY float The Y co-ordinate relative to the y parameter.
리턴 void

ScrollTo() 공개 메소드

Scrolls the control to the given point in the image, offset at the specified display point
public ScrollTo ( int x, int y, int relativeX, int relativeY ) : void
x int The X co-ordinate of the point to scroll to.
y int The Y co-ordinate of the point to scroll to.
relativeX int The X co-ordinate relative to the x parameter.
relativeY int The Y co-ordinate relative to the y parameter.
리턴 void

SelectAll() 공개 메소드

Creates a selection region which encompasses the entire image
Thrown if no image is currently set
public SelectAll ( ) : void
리턴 void

SelectNone() 공개 메소드

Clears any existing selection region
public SelectNone ( ) : void
리턴 void

StartAnimating() 공개 메소드

Stop animating
public StartAnimating ( ) : void
리턴 void

StartDrag() 보호된 메소드

Initializes a selection or drag operation.
protected StartDrag ( MouseEventArgs e ) : void
e MouseEventArgs The instance containing the event data.
리턴 void

StopAnimating() 공개 메소드

Start animating
public StopAnimating ( ) : void
리턴 void

UpdateScrollPosition() 보호된 메소드

Updates the scroll position.
protected UpdateScrollPosition ( Point position ) : void
position Point The position.
리턴 void

ZoomAuto() 공개 메소드

[PHAP] Zooms to the maximum size for displaying the entire image within the bounds of the control. If image size is smaller than viewer size, keep its original size.
public ZoomAuto ( ) : void
리턴 void

ZoomIn() 공개 메소드

Zooms into the image
public ZoomIn ( ) : void
리턴 void

ZoomIn() 공개 메소드

Zooms into the image
public ZoomIn ( bool preservePosition ) : void
preservePosition bool true if the current scrolling position should be preserved relative to the new zoom level, false to reset.
리턴 void

ZoomOut() 공개 메소드

Zooms out of the image
public ZoomOut ( ) : void
리턴 void

ZoomOut() 공개 메소드

Zooms out of the image
public ZoomOut ( bool preservePosition ) : void
preservePosition bool true if the current scrolling position should be preserved relative to the new zoom level, false to reset.
리턴 void

ZoomToFit() 공개 메소드

Zooms to the maximum size for displaying the entire image within the bounds of the control.
public ZoomToFit ( ) : void
리턴 void

ZoomToRegion() 공개 메소드

Adjusts the view port to fit the given region
public ZoomToRegion ( RectangleF rectangle ) : void
rectangle System.Drawing.RectangleF The rectangle to fit the view port to.
리턴 void

ZoomToRegion() 공개 메소드

Adjusts the view port to fit the given region
public ZoomToRegion ( float x, float y, float width, float height ) : void
x float The X co-ordinate of the selection region.
y float The Y co-ordinate of the selection region.
width float The width of the selection region.
height float The height of the selection region.
리턴 void

ZoomToRegion() 공개 메소드

Adjusts the view port to fit the given region
public ZoomToRegion ( int x, int y, int width, int height ) : void
x int The X co-ordinate of the selection region.
y int The Y co-ordinate of the selection region.
width int The width of the selection region.
height int The height of the selection region.
리턴 void