1. Computing

TPictureClip - Image Matrix

By October 29, 2012

Follow me on:

Enhance VCL :: The TPictureClip control will store multiple images that can be used by other Delphi controls. All images are contained in a single bitmap. Selected regions can then be 'clipped' from the bitmap and, for example, used with a TImage control to create animations.

Read the full article to learn how to build you own custom Delphi component: TPictureClip


November 1, 2012 at 4:43 pm
(1) Silver Warior says:

1. Why do you have to derive from TImage? Counldn’t you just derive from TPicture class?
2. Doesn’t TImageList store all images in single bitmap when all of them are of the same size?
3. Wouldn’t be better to have the ability to store pictures of different sizes? Since you are using CopyRect for extracting Clip Images you could easily define special parameters for Clip Image positions. You can easily save this informations in a list of records defining position, width, height and perferably name of each Clip Image.

November 2, 2012 at 3:51 am
(2) Zarko Gajic says:

@Silver: And that’s another idea! Would love to see it implemented, then post here :)

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.