Meir Posted September 10, 2012 Share Posted September 10, 2012 Is there a way to build a rule that will flip a user uploaded graphic 180 degrees. In this particular case the user will be uploading two images. I wish to have one upside down, and the other as is. So I do not want to rotate all uploaded images, just one in particular image from one field. Thank you! Link to comment Share on other sites More sharing options...
Dan Korn Posted September 10, 2012 Share Posted September 10, 2012 Sure, just create two separate, overlapping frames, one that's rotated 180 degrees, and one that's not, and write a rule for each one to either include the graphic or not. For instance, one frame would have a rule like so: if (graphicShouldBeRotated) return Resource("YourResource"); //else return NullResource();And the other would have the opposite: if (graphicShouldBeRotated) return NullResource(); //else return Resource("YourResource");This is similar to the logic which selects a different frame for landscape and portrait graphics: http://forums.pti.com/showpost.php?p=1367&postcount=2 Or, you could put the graphic in both frames, and suppress one of them selectively in OnRecordStart, like so: if (graphicShouldBeRotated) FindGraphicFrame("UnrotatedFrameName").suppress = true; else FindGraphicFrame("RotatedFrameName").suppress = true;Or, if you have a Producer (FP Direct or Server) license, then you can selectively rotate a single frame in OnRecordStart, like so: if (graphicShouldBeRotated) FindGraphicFrame("YourFrameName").rotationAngle = 180; Link to comment Share on other sites More sharing options...
Meir Posted September 10, 2012 Author Share Posted September 10, 2012 Thank you for the comprehensive answer. Got my issue covered and more. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.