Hi everyone!
After a lot of research and coding, I'm happy to announce that Image Kit is finally in a state where it can be released for use.
Description
Image Kit is a plug-in that allows you to manipulate an image. It can access an image data without conversion to memblocks which makes it several times faster. There are a lot of applications for this plug-in. Below are some screen shots to give but a few.
Commands
A list of commands:
Create Image Image Number, Width, Height[, Color]
Set Blend Mode Blend Mode
Set Blend Alpha Alpha Percentage
Paste Image On Image Image Number, Target Image Number, X, Y[, Angle]
Paste Image Rotated Image Number, CX, CY, Angle
Paste Image Desaturated Image Number, X, Y, Mode
Paste Image Brightness Image Number, X, Y, Red, Green, Blue[, Alpha]
Copy Image Image Number, Source Image Number[, Left, Top, Right, Bottom]
Blur Image Image Number, Radius, Blur Mode
Set Image Brightness Image Number, Red, Green, Blue[, Alpha]
Desaturate Image Image Number, Desaturation Mode
Modify Image Saturation Image Number, Saturation Percentage
Sharpen Image Image Number
Emboss Image Image Number
Negative Image Image Number
Set Color To Alpha Image Number, Color
Flip Image Image Number
Flip Image Horizontally Image Number
Flip Image Vertically Image Number
Set Image Channel Image Number, Channel, Value
Set Image To Image Channel Image Number, Source Image Number, Channel
Copy Image Channel Image Number, Channel, Channel Source
Paste Image Channel Image Number, Source Image Number, Channel[, Source Channel, X, Y]
Replace Image Color Image Number, New Color, Source Color
Resize Image Image Number, Width, Height, Resize Mode
Color = Get Image Pixel(Image Number, X, Y)
Set Image Pixel Image Number, X, Y, Color
Reset Image Kit
Gradient Linear Image Number, x1, y1, x2, y2, Color1, Color2, Channel, Mode
Gradient Radial Image Number, x1, y1, Inner Radius, Outer Radius, Color1, Color2, Channel, Mode
I did not include help files yet. I would like to wait until I'm sure the plug-in is stable and the commands will not be changed.
Examples
People like to see screen shots (at least I do), so I decided to make a few examples that make use of this plug-in.
Bullet hole example
An FPS example. You can shoot the plain that can be repositioned using space.
What does this plug-in add? You can see through the wall where you shot them by using some clever pasting and manipulating alpha. It does require some math to figure out the UV data though.
Fade out example
A very small example that shows a very easy fade-out effect for an image.
What does this plug-in add? You can directly manipulate the alpha channel. Also the blur effect was done by this plug-in.
Blend image example
Probably the first thing that even comes to mind when using an image manipulation plug-in. This example loads layer images and a mask image and transforms everything to a blended image.
What does this plug-in add? It then uses the red, green and blue channel of the mask image to manipulate the alpha channel of each layer. Then it pastes the layers directly to an image.
Note:
The example programs have been removed from the download. Of course it should still be possible to reproduce them, but since the plug-in is in a state where it could undergo significant changes, I have decided to wait until I start on the help files.
History
6/10/2009: v1.0 released
7/10/2009: v1.0b released (bug fix, did not work)
8/10/2009: v1.0c released (bug fix, to be tested)
25/10/2009: v1.01 released
2/11/2009: v1.01b released (bug fix)
14/11/2009: v1.02 released
14/12/2009: v1.03 released
20/01/2010: v1.10 released
14/05/2010: v1.10b released (added
reset image kit)
23/05/2010: v1.11 released
8/06/2010: v1.20 released
Sven B
Please report any bugs.