Image Manipulation Module

Monkey Archive Forums/Monkey Projects/Image Manipulation Module

chrisc2977(Posted 2013) [#1]
I have created a simple image manipulation module :)
(this can be used (for example) to get the user to draw their own character, and then apply effects to it)

Download Here


Example HERE

All functions return a new image (the new returned image retains the originals smooth alpha)

Tested working on HTML5 and Flash, but should work on all platforms.

It currently has the following functions:

HFlip()
VFlip()
ColorImage()
Desaturate()
ResizeImage()
RotateImageContents()
ApplyImageMask()
CombineImages()
AddCircle()
AddSquare()
Invert()
CopyImage()


Pretty self explanitory, Howto code below.



Any requests and Ill try :)


Beaker(Posted 2013) [#2]
Probably worth linking this here:
http://www.monkeycoder.co.nz/Community/posts.php?topic=4344


chrisc2977(Posted 2013) [#3]
Example added:
Example Here


New Features Added:
Image Blur - you can set the amount
Comine Images - you can set an offset and it auto enlarges if needed
Add Circle to Image - you can set colour and location
Add Square to Image - as above

Download module


Code for the example is as simple as:



Sammy(Posted 2013) [#4]
Handy stuff, thank you! :)


Snader(Posted 2013) [#5]
Nice work!


Raz(Posted 2013) [#6]
Fantastic :D I will very much use the image blur thingy.


Raul(Posted 2013) [#7]
that blur could be interesting. I need to test it ASAP :D

thanks,


chrisc2977(Posted 2013) [#8]
New Things Added:
Invert
CopyImage
Addeed a new example showing all effects - please check out!

Download Here
Example HERE


RENGAC(Posted 2013) [#9]
Very useful! The first use I see for this is for a scene-changer routine, taking a "snapshot" of the game screen and blurring it to the new scene.


nikoniko(Posted 2014) [#10]
297chrisc

No working example.


CopperCircle(Posted 2014) [#11]
The domain is down, does anyone have this code?


nikoniko(Posted 2014) [#12]
I have.


CopperCircle(Posted 2014) [#13]
Thanks, could you post it?


nikoniko(Posted 2014) [#14]
http://www.softexe.com/files/imagemanipulation.zip


nikoniko(Posted 2014) [#15]
BTW I did some changes in the module for my real project


CopperCircle(Posted 2014) [#16]
Great, thanks.