• Stars
    star
    185
  • Rank 207,276 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created about 12 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The ImageBox is a custom control for displaying images. It supports zooming, scrolling, panning, region selection and much more!

Cyotek ImageBox Control

About

The ImageBox is a lightweight owner drawn control for displaying images. It supports zooming, scrolling, panning, region selection and much more! In addition to the traditional mode of binding to an Image, you can also use a virtual mode, and provide your own custom drawing whilst retaining all the ImageBox functionality.

The ImageBox control also provides convenient helper methods for translating points, rectangles and sizes according to the current zoom level and scroll position of the control - this makes it easy to scale custom drawing to fit the control.

As well as the different behaviours offered, the ImageBox also supports a large number of display properties. The background of the control can display a solid colour, or a coloured grid in various sizes. You can also configure how the grid is to be drawn, for example just around the image bounds, or the full control bounds. Other options include the pixel grid, which is displayed when zooming in on an image to highlight each pixel, custom border styles for surrounding the image, and many other properties. You can also display text, and specifying formatting and alignment options.

Example Screenshots

ImageBox control demonstration

Virtual mode demonstration, where the ImageBox can be used without a backing image

The ImageBox can display a pixel grid when zooming in

License

The ImageBox control is licensed under the MIT License. See license.txt for the full text.

Further Reading

For more information on this control, see the articles tagged withimagebox at cyotek.com.

More Repositories

1

Cyotek.Windows.Forms.ColorPicker

Color picker control suite for Windows Forms applications.
C#
144
star
2

Dithering

Image dithering techniques using C#
C#
91
star
3

Cyotek.Collections.Generic.CircularBuffer

The CircularBuffer<T> class is a data structure that uses a single, fixed-size buffer that behaves as if it were connected end-to-end. You can use it as a first-in, first-out collection of objects using a fixed buffer and automatic overwrite support.
C#
50
star
4

Cyotek.Drawing.BitmapFont

Component for parsing bitmap font files generated by AngelCode's BMFont utility
C#
42
star
5

Cyotek.Data.Nbt

C# library for reading and writing NBT files
C#
37
star
6

Cyotek.Windows.Forms.TabList

Cyotek.Windows.Forms.TabList, a multi-paged container control with design time support and a Visual Studio 2012+ appearance
C#
32
star
7

Cyotek.AddProjects

The Add Projects extension is a simple Visual Studio extension that makes it easy to add multiple projects to your solution.
C#
25
star
8

SimpleScreenshotCapture

Sample project for the "Capturing screenshots using C# and p/invoke" article on cyotek.com
C#
24
star
9

Cyotek.Windows.Forms.FontDialog

A drop in replacement for System.Windows.Forms.FontDialog, without the crash when selecting non-TrueType fonts
C#
18
star
10

MantisSharp

A simple client for working with the MantisBT REST API
C#
17
star
11

ScannerTest

Sample application demonstrating using WIA from C# WinForms
C#
17
star
12

RegistryComparer

C# application for creating and comparing registry key snapshots
C#
16
star
13

CyotekDownDetector

A simple application to keep on an eye on the availability of HTTP sites
C#
13
star
14

HttpCrawlerTestSite

A small PHP based website for testing the essentials of a web crawler
PHP
12
star
15

ScriptingHostDemo

Demonstration project for adding scripting to your .NET application
C#
12
star
16

WadDemo

Reading, writing and working with WAD files using C#
C#
10
star
17

Cyotek.QuickScan

Simple application for scanning images with as few user-interactions as possible.
C#
8
star
18

SkylineGenerator

A small program to generate simple city skylines
C#
8
star
19

ColorEcho

Utility for displayed coloured text in batch scripts
C#
7
star
20

ScrollDemo

This repository contains a sample application demonstrating how to create a custom control that scrolls on a single axis.
C#
7
star
21

DoomPictureViewer

Decoding DOOM pictures using C#
C#
7
star
22

InternetGetCookieExDemo

Demonstration program for reading cookies from Internet Explorer using C#
C#
7
star
23

vsstosvn

Visual SourceSafe to Subversion allows VSS databases to be imported into new or existing SVN repositories.
C#
7
star
24

SvnGitMigrate

Simple tool to aid in doing partial migrations of an SVN repository to Git
C#
6
star
25

Cyotek.AzureContainerEcho

A simple program which sits in your tray and periodically downloads new files from Azure blob storage.
C#
6
star
26

ncpaintDemo

Using the WM_NCPAINT and WM_NCCALCSIZE messages in a C# Windows Forms application
C#
6
star
27

Cyotek.Drawing.Imaging.Farbfeld

C# encoder/decoder for farbfeld images
C#
6
star
28

LangtonsAntSimulator

A Langton's ant simulator written in C#
C#
5
star
29

persistentwindows

Keep your apps where you left them!
C#
5
star
30

Md5

Simple MD5 file hash utility
C#
5
star
31

ChemotaxisSimulation

A sample application attempting to simulate Chemotaxis, the movement of an organism either toward or away from chemicals
C#
5
star
32

2dimagefilter

Automatically exported from code.google.com/p/2dimagefilter
C#
5
star
33

Cyotek.Data.Ini

A simple library for reading and writing .ini files in .NET applications
C#
4
star
34

SpriteSheetPacker

A bare bones tool that to pack all images in a given directory into a single graphic, optionally generating sufficient CSS to use the sprite sheet in HTML
C#
4
star
35

imagelistview

Automatically exported from code.google.com/p/imagelistview
C#
4
star
36

hqx-sharp

Automatically exported from code.google.com/p/hqx-sharp
C#
4
star
37

Markdig.Keyboard

Markdig extension for inserting kbd tags
C#
4
star
38

Cyotek.Drawing.PaletteFormat.Fractint

C#
4
star
39

MarkdigMantisLink

Markdig extension that automatically add links to MantisBT issue items
C#
4
star
40

Cyotek.Drawing.PaletteFormat.RgbTriplets18

Read/write 18-bit RGB VGA palettes using C#
C#
3
star
41

Cyotek.FixExif

Tool for adding or updating EXIF information. Not user friendly or ready to run, see readme.
C#
3
star
42

Cyotek.Drawing.PaletteFormat.Riff

Read/write Microsoft RIFF palettes using C#
C#
3
star
43

Cyotek.HistoricalDate

.NET library for working with historical dates
C#
3
star
44

fast-member

Automatically exported from code.google.com/p/fast-member
C#
3
star
45

mpqtool

Automatically exported from code.google.com/p/mpqtool
C#
3
star
46

todo

A simple todo application using ASP.NET Core
C#
3
star
47

aeroshot

Automatically exported from code.google.com/p/aeroshot
C#
2
star
48

ncrontab

Automatically exported from code.google.com/p/ncrontab
C#
2
star
49

go.cyotek.com

Simple PHP URL redirection service
PHP
2
star
50

gwen-dotnet

Automatically exported from code.google.com/p/gwen-dotnet
C#
2
star
51

translateclient

Automatically exported from code.google.com/p/translateclient
C#
2
star