Get bounds only of what is visible?

Okay, So when you use a clipping mask there can sometimes be a lot of art that is invisible. If you "Select All" you'll get a rectangle only around what's visible.  I want the bounds of that rectangle.
I tried itterating the art but I don't think that the art type is the best way to figure this one out.  And if you use AIGroupSuite to test if an art group is "clipped" with GetGroupClipped, you get the bounds of the larger art that I'm trying to avoid.
I didn't see anything about bounds of a "selection" in the docs. 
Anyone got a hint on where to look for this one?

you should do this way:
//Get Art Bounds for each AIArtHandle
AIRealRect artBounds;
error = sAIArt->GetArtBounds(*iter, &artBounds);
aisdk::check_ai_error(error);
//Compute selection bouding box.
AIRealRect& boundingBox;
//for each selected AIArtHandle, bouding box needs to be updated. (loop)
if(boundingBox.left > artBounds.left)
     boundingBox.left = artBounds.left;
if(boundingBox.top < artBounds.top)
     boundingBox.top = artBounds.top;
if(boundingBox.right < artBounds.right)
     boundingBox.right = artBounds.right;
if(boundingBox.bottom > artBounds.bottom)
     boundingBox.bottom = artBounds.bottom;
Finally, you will have your selection bounding box.

Similar Messages

  • I accidently unmarked the book marks tool bar, the tool bar and the menu bar how do i get them back ?becaus now only the tabs are visible and i cant access my features or book marks

    i was getting to know my firefox so i accidentally unmarked the menu bar the book marks tool bar and the tool bar. so now only my tabs are visible and i cant get to any of my add-ons or extensions.
    and even surfing the net has become difficult cause there is almost nothing i can do with a new empty tab.
    how can i get these bars back. i tried taking the cursor up to the thin line above the tabs and the window border but the menu to mark the above mentioned features does not appear any more.
    i tried restarting firefox several times but it didn't work. i even uninstalled and completely downloaded a new version of firefox and installed it but the problem still persists.
    i am operations system is windows XP.

    Firefox 3.6+ versions have a feature to allow the user to hide the Menu bar.
    Hit the '''Alt''' key to temporarily show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark. <br />
    The F10 can also be used on most PC's to temporarily reveal the Menu bar.
    https://support.mozilla.com/en-US/kb/Menu+bar+is+missing

  • HT3823 I looked at an album and at the bottom there was a digital booklet and it said "album only" so I bought the album, but then I didn't get the booklet. What do I do? (iPad 2)

    I looked at an album and at the bottom there was a digital booklet and it said "album only" so I bought the album, but then I didn't get the booklet. What do I do? (iPad 2)

    Hi OverratedBacon,
    Thanks for using Apple Support Communities.  I would first try downloading the songs from your past purchases by following the appropriate steps here:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/ht2519
    If you're still unable to receive your preorder, you may want to report this to the iTunes Store:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/ht1933
    Cheers,
    - Ari

  • I used to be able to see my ITunes music on my Mac from my IPad. Now when I go to music on my IPad I only see what is on the pad not my mac. How do I get that choice on my pad again?

    I used to be able to see my ITunes music on my Mac from my IPad. Now when I go to music on my IPad I only see what is on the pad not my mac. How do I get that choice on my pad again?

    Hi klwhitenator,
    It sounds like you are not seeing your Home Shared content from your computer on your iPad. I would use the instructions in the following article to verify the settings for that function are still setup correctly on both the devices:
    Troubleshooting Home Sharing
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • HT1267 Hi, I had bought an iPhone 4s 3 days ago & unfortunately it's been stolen at the day only,So it's a unregistered,seal peace only. What I have with me is the bill and on that the IMEI no of the iPhone. Is there any way to track it or getting informa

    Hi, I had bought an iPhone 4s 3 days ago &amp; unfortunately it's been stolen at the day only,So it's a unregistered,seal peace only. What I have with me is the bill and on that the IMEI no of the iPhone. Is there any way to track it or getting information.
    Please help me out of this,,,,,....

    No, there is nothing you can do if you had not setup Find my iPhone on it.
    The bill and IMEI are useless for tracking a phone.

  • I am restored my iphone 3g ilost network i am getting only sos what to do

    i am restored my iphone 3g ilost network i am getting only sos what to do

    Hi vanipraneeth,
    Welcome to Apple Support Communities.
    You may find this article helpful for diagnosing and resolving your issue:
    iPhone: Troubleshooting a cellular data connection
    http://support.apple.com/kb/TS3780
    Cheers,
    Jeremy

  • I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    I need to retrieve files from my iPad but I forgot my password. I tried to restore it but then it said I had to turn off Find my iPad on my iPad. I can't do this because I can't get into it. What do I do?

    If the iPad was running iOS 7,  iCloud: Find My iPhone Activation Lock in iOS 7
    http://support.apple.com/kb/HT5818
    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • Get bounds of image and bounds of frame of image?

    How can I get both the geometric bounds of an image AND the geometric bounds of the frame of the image as I loop through all the images in a document?

    Here's the Apple Script version of the script:
    tell application "Adobe InDesign CS3"
         set TheDocument to active document
         set TheGraphics to all graphics in TheDocument
         repeat with n from 1 to (count TheGraphics)
              set TheGraphic to item n of TheGraphics
              set TheLink to item link of TheGraphic
              set TheImage to parent of TheLink
              set TheFrame to parent of TheImage
              set ImageGB to geometric bounds of TheImage
              set FrameGB to geometric bounds of TheFrame
              set ImageVB to visible bounds of TheImage
              set FrameVB to visible bounds of TheFrame
              set TheText to "Name: " & name of TheLink & return & ¬
                   "Geometric Bounds of Image = " & ImageGB & return & ¬
                   "Geometric Bounds of Frame = " & FrameGB & return & ¬
                   "Visible Bounds of Image = " & ImageVB & return & ¬
                   "Visible Bounds of Frame = " & FrameVB & return & return
              my write_to_file(TheText, true)
         end repeat
    end tell
    on write_to_file(this_data, append_data)
         try
              set the log_file to (path to desktop as text) & "Geometric and Visible Bounds Report" as text
              set the open_target_file to open for access file log_file with write permission
              if append_data is false then set eof of the open_target_file to 0
              write this_data to the open_target_file starting at eof
              close access the open_target_file
              return true
         on error
              try
                   close access file log_file
              end try
              return false
         end try
    end write_to_file
    Kasyan

  • How to get the only the changed or newly added entries in AFTER SAVE.

    I have created table maintenance generated for a table,I want to get the newly added or changed entries while saving thats why im using AFTER SAVE event for the same,can anyone please tell me how to get the only the changed or newly added entries in AFTER SAVE.

    Hi,
    Welcome you post on the forum.
    I have moved your thread here because it is in English and should not in the language specific forum. What is your system version?
    Thanks,
    Gordon

  • I just purchased PDF PRO 10. I can't make EDABLE .doc, only "read only". What am I doing wrong?

    I just purchased PDF PRO 10. I can't make EDABLE .doc, only "read only". What am I doing wrong?

    Hi karenb60536875,
    There are some PDF types (such as those that are password-protected) that can't be converted. But when that's the case, you'll get a message during conversion, and the conversion will stop. It doesn't sound like that's the case for you.
    What happens when you open the converted Word document in Word? Do you see an Enable Editing button at the top of the document? If so, please click that. If you're still unable to select text in the Word document, try triple-clicking to select it.
    For reference, I will say that the quality of the conversion depends on the quality of the PDF (see Will Adobe ExportPDF convert both text and form... | Adobe Community). So, there may be cases where a PDF written by a third-party application (a non-Adobe app), may not be written to spec, and that can affect the accuracy of the conversion.
    Best,
    Sara

  • Getting audio only when exporting to camera

    Hello. I have exported many times before but when I recently tried to export to camera, I get audio only. I tried deleting the iMovie Preference file (which I had to do at times in the past) and then I got some video with audio at the beginning but then the video stalled while the audio continued.
    The iMovie material (which I have already exported to DVD) that I am trying to export to tape is from a DVD which I had converted to DV through Toast and edited in iMovie if that makes any difference.
    I'm using iMovie 6.04. Any comments will be appreciated.

    Hi, Rich,
    I just select QuickTime from the Share option in the menu bar, not Export from the File.
    It gives the options of Full Quality, CD-ROM, Web streaming and Email and Expert Settings. I always leave it as Full Quality. I just tried it now and when I select 'Expert Settings,' nothing happens until I click on 'Share,' and then I see the options of how to export and what format to use. Selecting Movie to DV Stream, I then have to change from the 'Most Recent Settings' to get the options of either PAL or NTSC settings for 32, 44.1 or 48 kHz...those are sound settings for audio.
    Frankly, I find it much harder to do all these setting changes when Share to QT as Full Quality has always produced a great movie that is equal in quality to the original iMovie.
    I have been doing it this way since the first iMove came out. It has always been known as a loss-less method. Frequently, my iMovies are complicated with many video and audio clips. With earlier versions, whenever iMovies became complicated, the playback would skip, stutter or the audio would freeze or become distorted. I learned from experience that the burned disks and disk image files would be fine, but it was hard to finish the edits. I learned to edit the video clips, add the still photos, transitions and titles, add just some audios if I needed a few seconds of sound under the still photos, and then export the movie as the Full quality quick time movie. Then, take that qt movie into a new iMovie and then add the audio. Worked every time. The new qt movie always played fine......unless I got too many more clips, and then I just made a new qt movie at that point. I also always use the qt version for exporting back to miniDV tape because the stuttering version usually would not export, or if it did, the stuttering would persist and ruin it.
    Good luck with your projects!

  • My Mac OS X 10.4.11 will not write DVDs and gets error code 0x80020022, what is wrong?

    My Mac OS X 10.4.11 will not write DVDs and gets error code 0x80020022, what is wrong?

    That code is not really useful since it just means it can't write DVD's (or probably CD's).  The only thing you can do is first to try a different brand of DVD's, higher quality.  You could also try burning at a slower speed.
    Based on the fact that you are using an OSX that's no long supported, there's probably not much you can do to correct this issue if it is software related.  You may also have a failing Super Drive, another consequence of an older Mac.

  • IPhone 4s.used to get swoosh sound every time I got an email.  Now I don't and I have to open email for it to connect and get new messages.  What do I do?

    iPhone 4s.used to get swoosh sound every time I got an email.  Now I don't and I have to open email for it to connect and get new messages.  What do I do?

    Once you purchase or download an app it will always be associated with the Apple ID used to download it. When that app requires and update you must use the Apple ID and password used to download it in the first place. The only way around this is to delete the apps the require the old Apple ID and download or purchase them again with the new Apple ID.

  • Can someone explain the icloud to me please? Where are all my old pictures and how can I see them? Photostream only holds 1000 and when I sync my icloud to my mac it only imports what is on my photo stream.

    Can someone explain the icloud to me please? Where are all my old pictures and how can I see them? Photostream only holds 1000 and when I sync my icloud to my mac it only imports what is on my photo stream.

    When you enable photo stream on your Mac, in imports photos currently in your photo stream.  However, photo stream only keeps photos for 30 days, even though up to 1000 photos will remain on your device until you delete them.  When you enable photo stream on your Mac, you will only receive photos added in the last 30 days, as the others are no longer in your photo stream.
    If you want to get all your old photos on your Mac, save them to your camera roll (if they aren't already there) by opening your photo stream album, tapping Edit, tap the photos, tap Share, tap Save to Camera Roll.  Once they are in your camera roll, import them to your Mac as explained here: http://support.apple.com/kb/HT4083.
    Another option would be to create a shared photo stream containing the older photos and invite yourself (as explained here: http://help.apple.com/icloud/#mmc0cd7e99).  Then check Shared Photo Streams in iPhoto>Preferences>Photo Stream and you will see this shared photo stream on your Mac.

  • I have upgraded to IOS 7 and now I wish I did not as I have lost face time and iMessage and they would not get activated no mater what I have tried .it seems they are trying to get connected but are unable to do so.

    I have upgraded to IOS 7 and now I wish I did not as I have lost face time and iMessage and they would not get activated no mater what I have tried .it seems they are trying to get connected but are unable to do so.
    It is becoming frustrating to try to get it activated .
    I do not know how to get it activated when it keeps informing me that there is no net work connected
    Could not sign in please check your network connection and try again.
    For both iMessage and FaceTime .
    Any radical solution that you have will be appreciated as it is becoming frustrating .

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  It could take well over an hour!  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow the on-screen directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    At the end of the basic Restore, you will be asked if you wish to sync the iPad/iPod.  As before, say "yes."  Note that that sync selection will disappear and the Restore will end if you do not respond within a reasonable time.  If that happens, only the apps that are part of the IOS will appear on your device.  Corrective action is simple -  choose manual "Sync" from the bottom right of iTunes.
    If you're unable to do the Restore and you have IOS-6 or lower, go into Recovery Mode per the instructions here.  Also, if you have IOS-7, read this.

Maybe you are looking for

  • Access to memory slots on b320

    I want to upgrade my ram on my b320 but have hit a brick wall trying to get the back off. I've looked on YouTube where a vid shows it just being slid off but mine won't budge. I don't want to force it or prise it off in case I do damage. Is there a k

  • Flash photo gallery, popup image

    Hi! I'm new to flash. I have created a small flash thumbnail gallery. What I would like to add now is that when you click on one of the images, a bigger version of the selected image appears as a popup. At least it looks that way. How is this done? D

  • How to delete 12.1.0.1 OMS Home when it contains the 12.1.0.2 agent s/w?

    Hi, I successfully upgrade our OEM 12.1.0.1 to OEM 12.1.0.2. I would like to delete the 12.1.0.1 OMS Home (/app/oem/Middleware). However the OEM 12.1.0.2 agent still exists under /app/oem/Middleare. Is there any well document procedure which can be u

  • Multiplying elements of two different arrays

    hey, I have a while loop thats performing two separate operations similtaneously and filling the data elements of two different 1d arrays with data.with each iteration of the loop a new value pass from an operation to an array. I need to multipy to c

  • Authentification errors and timeouts!

    Anybody else suffering again on the forum today? I'm getting authentification errors galore atm ..... Will be bailing out soon methinks ....