PDA

View Full Version : Example: Crop Image


Worm
04-06-2006, 09:31 AM
This is an example that shows how to use the WindowShot.dll I uploaded a while back to "crop" an image. It uses a Shape plugin to allow you to draw the rectangled area you wish to crop, then sends the necessary info to the DLL to create the cropped image.

sue
04-06-2006, 10:08 AM
Very nice!! Works like a charm .... Thanks Worm!!!

Dez
04-06-2006, 10:12 AM
Worm, this is a really nice example bud. I can see this going in a good direction. I stop by this board quite often and do a quick scan and notice these excellent exampes from you and others but I'm always in a hurry and don't post a "Thank You"....(shame on me).

Well...Thank You, I know all this code does not come for free, it takes time, and I for one really do appreciate it.

IR better snap you up while they can.

Dez

rhosk
04-06-2006, 10:16 AM
I like to move it, move it, he like to move it move it, she like to move....

Da' Bomb :yes

TJ_Tigger
04-06-2006, 10:30 AM
Another fine example brought to you by the outstanding people at Wormware.

Dermot
04-06-2006, 08:40 PM
Brilliant! :yes :yes

Mina
04-07-2006, 03:31 AM
Great job worm, thanks!

Corey
04-07-2006, 03:53 AM
For he's a jolly good fellow! :D

azmanar
04-07-2006, 04:28 AM
WOW !!!!!!!!!

Great piece of work !! Vive Le Worm !!

playmenow
04-07-2006, 05:21 AM
It's awesome!!! It would be eve better if we could crop the image to be rount or any other shape (I should stop dreaming...:rolleyes )


WormApp = "Rock!!!"
if WormApp == "Rock!!!" then
Person.SetHappy(true);
else
Person.SetHappy(false;)
end

:yes :yes :yes :yes :yes

Corey
04-07-2006, 05:26 AM
"Cropping" such as it is, is purely a rectangular/square thing in practice. "Masking" is the term which applies to the same functionality vis-a-vis all other shapes, and Worm has in fact solved that too with his tres cool mask plug-in. Well worth the money, you should consider buying a copy playmenow. :yes

playmenow
04-07-2006, 05:44 AM
Well worth the money

Everything that Worm created is worth the money

Mina
04-07-2006, 06:41 AM
WormApp = "Rock!!!"
if WormApp == "Rock!!!" then
Person.SetHappy(true);
else
Person.SetHappy(false;)
end



Person.SetHappy(false;)
Person.SetHappy(false);
:o

yosik
04-07-2006, 08:01 AM
Beautiful piece of work, Worm. Back there when crop was discussed, I KNEW that it was just a matter of time till you or Intrigued would come out with something.
Tell me, Worm, if it is dll based, wouldn't there be a way to crop an image at design time?

Thanks Man,
:yes :yes

Yossi

Worm
04-08-2006, 08:30 AM
I Don't think so Yos.

This kinda came to me on a whim when I was trying something else with a screen shot thingie.