I've been pretty busy recently pushing out updates to
WebCopy, a pending update to Spriter and working on a
game project so blog posts have suffered a bit. While I work to
correct that, we've just pushed an update to the ColorPicker
controls.
Important
This update contains breaking changes due to a number of renamed
classes and enum members.
So what's new?
All the *PaletteReader classes have been replaced with
*PaletteSerializer. As the new names imply, palettes can now
be written as well as read. This is a breaking change and may
require some reworking of any code that used to use the old
readers.
The ColorEditor now supports selecting of named colors as
the hex editor is now a dropdown list. As well as being able
to select named colors from the list, you can now also type
names directly into the hex editor and they will be processed
accordingly.
The ColorPickerDialog now can load and save palette files
Palette support has been reworked to allow the saving of
palettes as well as loading. Unfortunately due to the initial
names of these classes this is a breaking change, albeit a
minor one.
Added a bit more documentation
Corrected some grammatical errors in existing documentation
and headers
Added additional tests to ensure palettes are written
correctly
New from 1.0.1.0
GIMP Palette support
Some unit tests to make sure palettes are read correctly
Downloads
Grab the update from the link below or from the GitHub
page.
We hope you enjoy these improvements!
Update History
2013-07-13 - First published
2020-11-21 - Updated formatting
Like what you're reading? Perhaps you like to buy us a coffee?
The founder of Cyotek, Richard enjoys creating new blog content for the site. Much more though, he likes to develop programs, and can often found writing reams of code. A long term gamer, he has aspirations in one day creating an epic video game - but until that time comes, he is mostly content with adding new bugs to WebCopy and the other Cyotek products.
The `ColorGrid` control is a fairly useful control for selecting from a predefined list of colours. However, it can take up quite a bit of screen real estate depending on how many colours it contains. This article describes how you can host a `ColorGrid` in a standard `ToolStrip` control, providing access to both the `ColorGrid` and the `ColorPickerDialog`, with some custom painting to show the active colour on the button to round it off.
The [ColorPicker Controls](https://github.com/cyotek/Cyotek.Windows.Forms.ColorPicker) have been updated to version 1.0.4.0.
This is a fairly substantial update, with quite a few bug fixes and enhancements to the code. I'll also briefly discuss plans for future updates to the library.
# Mohit Kumar Agrawal