Displaying multi-page tiff files using the ImageBox control and C#
A brief article showing how to display individual pages from a multi-page tiff file in the ImageBox control.
Our last post before the new year and some new material is an update to the ImageBox (now at version 1.1.2.0) and TabList (at version 1.0.0.2) controls. You can grab the updated source from the links at the end of the post, or from the GitHub page.


IsPointInImage method. This function returns if a given point is within the image viewport, and is useful for combining with PointToImage.ImageBorderColor property, allowing you to customize the color of the image borderImageBoxBorderStyle, FixedSingleGlowShadow. This style allows for a more smoother outer glow shadow instead of the existing clunky drop shadow.ShowPixelGrid and PixelGridColor properties. When set, a dotted grid is displayed around pixels when zooming in on an image.PointToImage which allows you to specify if the function should map the given point to the nearest available edge(s) if the point is outside the image boundariesAllowDoubleClick property. When set, the normal double click events and overrides work as expected.VirtualMode and VirtualSize properties. These new properties allow you to use all functionality of the ImageBox control without having to set the Image property. You can also use the new VirtualDraw event to provide custom drawing without having to override existing drawing functionality.GridDisplayMode property is set to Image an explicit image border is no longer drawn, instead the ImageBorder property is correctly honoured.GetImageViewport method now correctly returns a width and height that accounts for control size, padding and zoom levels.AutoSize propertyShowTabList property. When set to False, the list of tabs is no longer displayed, and navigation can only occur via code.AllowTabSelection property. When set to False, the control can no longer gain focus, mouse hover effects are not displayed, and navigation can only occur via code. This allows you to disable navigation whilst still having the tabs visible.HoverIndex property always defaulting to zero.Happy New Year all!
Like what you're reading? Perhaps you like to buy us a coffee?
# Ferry
# Richard Moss
# Mario Muja
# Richard Moss
# CD
# Richard Moss
# CD
# Richard Moss
# Konstantin Samsonov
# Richard Moss
# Jonathan
# Richard Moss