sibarrick Posted December 3, 2005 Share Posted December 3, 2005 Hi all, So you use context.setImageBounds to set the image bounds, but if you want to actually crop an image how do you do that? ta Quote Link to comment Share on other sites More sharing options...
sibarrick Posted January 16, 2006 Author Share Posted January 16, 2006 Turn out to be very simple I just missed it in the help. Thanks to support for pointing this out TIL_Sequence * COP2_TextureTile::cookSequenceInfo(OP_ERROR &err) { COP2_MaskOp::cookSequenceInfo(err); mySequence.setRes(getPARM("size", 0), getPARM("size", 0)); return &mySequence; } Just thought I'd post it up in case anyone else is searching the forum for the answer. Quote Link to comment Share on other sites More sharing options...
edward Posted January 17, 2006 Share Posted January 17, 2006 Well, for reference sake, that second call to getParm() use 1 instead of 0 if you want a non-square cropping. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.