Crystal Image Toolkit 0.82 is ready to download.
Minor Enhancements:
CrystalImageItem: Added DisplayName property.
This property will be used by CrystalImageGridView when it draws the text for the image item. The DisplayName is separate and distinct from the ImageName. ImageName for CrystalFileCollector is the name of the image file "image.png" whereas DisplayName could be "image1".
If DisplayName is not set, it will default to the value in ImageName.
CrystalImageItem: SplitImagePath now sets DisplayName as well as ImageName, ImageLocation.
CrystalImageItem: ToString() method uses DisplayName instead of ImageName.
CrystalImageGridModel, added new methods to help skip CrystalGroupItem objects...
- FirstNonHeaderIndex:
Finds the index of the first item in the model that is not a CrystalGroupItem. - LastNonHeaderIndex:
Finds the index of the last item in the model that is not a CrystalGroupItem. - PrevNonHeaderIndex:
Finds the index of the previous item in the model that is not a CrystalGroupItem. - NextNonHeaderIndex:
Finds the index of the next item in the model that is not a CrystalGroupItem.
CrystalImageGridView: ShowThumbnails property added.
Set this property to false if you do not want anything displayed in the image grid view. Only the gradient background will be shown. Setting the property back to true displays the thumbnail images.
CrystalImageGridView: DrawImageTitle now uses CrystalImageItem's DisplayName property for the title text.
CrystalComicShowController: unpack-wait dialog now positioned within the main form.
CrystalComicShowControllerDemo: Enhanced to convert images in CBR/CBZ files to a size compatible for viewing on the Sony PSP. Fixed crashing bugs and sorting bugs from previous release.
Bug Fixes:
CrystalFileCollector: Images that have the hidden file attribute are now skipped when CollectImages is executed.
CrystalFileCollector, CrystalMemoryZipCollector, CrystalRarCollector:
Initial sorting of list was incorrect. The sorting of the list must be done before the list/group item is added to the model.
CrystalImageGridView, CrystalPictureShow, CrystalPictureShowController:
Critical bug fixes where the controls tried to display or scroll to image item objects that were actually CrystalGroupItem objects. The above methods are used to avoid them when necessary.
CrystalPictureShowController: Bug fix in DisplayImage. Operations on the main GUI thread (_imageForm) synchronized with an Invoke and code inside MethodInvoker.
CrystalThumbnailer: Store method creates thumbnail folder if it does not exist.
CrystalThumbnailer: GetThumbnailName method bug fix, forward slashes '/' converted to '\'. This was found in zip/rar files.
Code Cleanup:
CrystalImageItem: protected fields now change to private.
To access these values in child classes, you have to use the Properties encapsulating these fields.
CrystalTools: Class is now static (and therefore, sealed).
Redundant Exception handlers were removed in various classes.
NOTE: Exception handling will be revised in a near-future release.
Currently the toolkit is eating the exceptions and logging them; they obviously need to be thrown back to other objects in many cases.
Download: Crystal Image Toolkit 0.82. Totally free, open-source, C# .NET Framework 2.0 for Windows Forms, works with both Visual Studio 2005 and 2008.



Leave a comment