Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trying to create a plugin to crop an image into 4 pieces

Status
Not open for further replies.

jag001

Programmer
Jan 16, 2005
10
CA
Hi all,

I am new to creating plugins, and what i needed to do was the following:

From an open image crop it into 4 randomly sized pieces.[/color red] I figured out a few ways to do this:

1. randomly position 2 slices and create an action in imageready to save the images into 4 portions.

2. Resize the image 4 times (in 4 different directions) and save each image.

3. Crop the image 4 times in 4 different areas and save each time.

4. copy pixel for pixel for seperate sections into 4 new images.

After looking through the SDK and examples i did not notice any examples showing how this would be possible. I would prefer to do it using slices. IF anyone knows is it possible to create 4 images from 1? Are there any examples to do this? And would you know what methods to call to mainipulate the slices or open an image to resize..???

Thank you for reading through and any help provided as i am totally stumped at the moment. Also my C/C++ skills not the sharpest at the moment, been a very long time since i last had to call upon them.

-- Jag[/color blue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top