| All bitmaps that are passed to manipulators are in B_RGB32-bit mode. It is still advisable to check the color-space before proceeding with the manipulation.
|
| The alpha-channel of the bitmaps controls layer's transparency. Value 0 is fully transparent while 255 is fully opaque.
|
| The functions of one instance of manipulator-class will be always called from within a single thread, but multiple instances of that manipulator may be working in different threads. This means that you can use member variables to store control information, but you should not use static member variables for that purpose.
|
| The manipulator should use as many threads to calculate the effect as there are processors. Using multiple threads to calculate the preview is also a good idea.
|
| If you find that doing preview is not fast enough, you might want to considering doing a preview for a part of the image only and displaying it in the manipulator's configuration view.
|
| The manipulators should not change the provided selections in any way.
|
| When the manipulator is deleted it should delete all the resources that it acquired. Because manipulators will be executed in ArtPaint's memory-space any malfunction or failure to release for example allocated memory will affect the whole program.
|