Indigo Rose Software
  #1  
Old 04-06-2006
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Example: Crop Image

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.
Attached Files
File Type: apz Cropit.apz (179.5 KB, 468 views)
Reply With Quote
  #2  
Old 04-06-2006
sue sue is offline
Indigo Rose Customer
 
Join Date: Mar 2004
Location: Michigan
Posts: 168
Very nice!! Works like a charm .... Thanks Worm!!!
Reply With Quote
  #3  
Old 04-06-2006
Dez Dez is offline
Indigo Rose Customer
 
Join Date: Oct 2004
Posts: 30
Greatly appreciated!

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
Reply With Quote
  #4  
Old 04-06-2006
rhosk's Avatar
rhosk rhosk is offline
Indigo Rose Customer
 
Join Date: Aug 2003
Location: Maine, USA
Posts: 1,692
I like to move it, move it, he like to move it move it, she like to move....

Da' Bomb
__________________
Regards,

-Ron

Music | Video | Pictures
Reply With Quote
  #5  
Old 04-06-2006
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
Another fine example brought to you by the outstanding people at Wormware.
__________________
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Reply With Quote
  #6  
Old 04-06-2006
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Brilliant!
__________________
Dermot

AMS Add-ons - xDialog.com

A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
Reply With Quote
  #7  
Old 04-07-2006
Mina's Avatar
Mina Mina is offline
Forum Member
 
Join Date: Oct 2005
Location: American Dubai
Posts: 629
Great job worm, thanks!
Reply With Quote
  #8  
Old 04-07-2006
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
For he's a jolly good fellow!
Reply With Quote
  #9  
Old 04-07-2006
azmanar's Avatar
azmanar azmanar is offline
Indigo Rose Customer
 
Join Date: Oct 2004
Location: East, South & West Asia
Posts: 948
WOW !!!!!!!!!

Great piece of work !! Vive Le Worm !!
__________________
Newbie Examples
------> AMS 7.5 : amstudio.azman.info
----> AMS 6 & 5: www.azman.info/ams/
----> Twitter: www.twitter.com/azmanar/
Reply With Quote
  #10  
Old 04-07-2006
playmenow playmenow is offline
Banned
 
Join Date: Nov 2005
Location: Banned by moderator.
Posts: 264
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... )

Code:
WormApp = "Rock!!!"
if WormApp == "Rock!!!" then
Person.SetHappy(true);
else
Person.SetHappy(false;)
end
Reply With Quote
  #11  
Old 04-07-2006
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
"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.
Reply With Quote
  #12  
Old 04-07-2006
playmenow playmenow is offline
Banned
 
Join Date: Nov 2005
Location: Banned by moderator.
Posts: 264
Quote:
Originally Posted by Corey
Well worth the money
Everything that Worm created is worth the money
Reply With Quote
  #13  
Old 04-07-2006
Mina's Avatar
Mina Mina is offline
Forum Member
 
Join Date: Oct 2005
Location: American Dubai
Posts: 629
Quote:
Originally Posted by playmenow
Code:
WormApp = "Rock!!!"
if WormApp == "Rock!!!" then
Person.SetHappy(true);
else
Person.SetHappy(false;)
end
Person.SetHappy(false;)
Person.SetHappy(false);
Reply With Quote
  #14  
Old 04-07-2006
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
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,


Yossi
Reply With Quote
  #15  
Old 04-08-2006
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching pictures with forward/back buttons ilandv AutoPlay Media Studio 4.0 10 08-08-2004 05:51 PM
Function: Resize & Center an Image kpsmith AutoPlay Media Studio 5.0 Examples 0 05-17-2004 02:36 PM
Making a Thumbnail Image Browser Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 03:16 PM
Making an Image Browser Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 03:06 PM
Reloading Image Objects at Runtime Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 11:26 AM


All times are GMT -6. The time now is 06:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software