Quote:
Originally Posted by Byak@
Good work ,eww245! I'm hope you don't throw it!
Without sample i can't understand...this lib can load Alpha Transparented images from png\ico and draw it (now on form)?
|
Yes it can draw png's with an alpha channel. No it does not load ico's, but I'll look in to it.
For now I'm not going into too much detail here but I have added a bunch.
There are three classes
Alpha AlphaImage ImageList
I took
agrahams

suggestion and added the seperate class for a non form image.
ImageList was added for regular Bitmaps because Basic4ppc ImageList only keeps a reference to an image, not making a copy.
AlphaImage has
AdjustBrightness,
AdjustContrast,
AdjustGamma,
Rotate and
Flip along with the same methods as Alpha.
These are part of the
IBitmapImage object that I've finally been able to understand.
Anyone's guess is as good as mine for the value ranges, except for Flip, it is bool and bool.
I removed drawing in the foreground, Form.DrawImage acts as a foreground so it's not needed.
Also a memory leak, I believe, is solved, at least for most methods.
The first post has been updated with these changes and a demo, Door and BinaryFile are needed.
BinaryFile is a complement to this as the embedded images can be loaded into a byte[] array.
Door isn't needed but a few methods helped with the demo.
I'm still finding something new with this often so this could eventually be quite a large library.