Quick image question - clipping or windowing a section of a larger image

I've forgotten what it's called, to search the documentation, so maybe someone here can help me to remember...
I know it's a lot better to use one image, with clipping regions, rather than a lot of little images, so I've created a graphic which contains all of the 32x32 pixel images I want to use in my app. I can easily display the entire image, just fine and it's scaled properly.
Now, how do I display a specific 32x32 pixel rect at a specified place on the main window, possibly displaying multiple copies of one or more of the smaller images at different places on the main window simultaneously. (like game pieces, or a terrain map).
Code would be nice, but a pointer to the right documentation will be best. It seems I should be able to do this with one hidden window containing the graphic, and then multiple instances displayed in a separate main window.
Do I need to use 2 windows, or can the image reside in memory and not be part of a view except when drawn on the main window?
-Carl

Found it!
old
http://developer.apple.com/documentation/graphicsimaging/conceptual/drawingwithq uartz2d/dqimages/dqimages.html
simply add "/mac/library/" between developer.apple.com and documentation in the links!
(someone tell Apple to tell their webservers to do this automagiccally It would save developers a lot of time!
new
http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/ drawingwithquartz2d/dqimages/dqimages.html

Similar Messages

  • Can't access old ver. 9, 11 & 13 clips after Windows upgrade

    In Sept. 2014 I downloaded PE 13 from B&H, worked fine and was able to access old PE9 & PE11 clips.  In Dec. 2014 had problems with Wind. 7 Home Ed. and had to upgrade to 8.1 (decided on Pro).  Installed 8.1 Pro end of Dec. 2014 and bought PE 13 DVD from B&H to reinstall after I backed up my hard drive.  Problem after install of 8/1 Pro and installing PE13 from DVD I can't access and restore old clips from 9, 11 & 13.  Tried everything I can think of....any suggestions PLEASE!

    Very good, I completely understand.  Please understand "I am not a computer geek!"
    With the old computer system, you have Premiere Elements 9, 11, and 13 projects. And, you import media into each and see thumbnails for each of your imports in the project media area of the program (in version 11 and 13, called Project Assets).  CORRECT!  Please as we go forward I have the PE 13 that was downloaded from B&H and worked perfectly with my previous assets in PE 9 & 11.
    When you go to open a project in one of these programs and go to the project media area, do the source media thumbnails still show as before with image in the thumbnail? Or does the thumbnail have a display of circular arrows? If the present as before, can you drag the file from the project media area to the Timeline? If you cannot, it that the problem? NO!  (First info is when I set up my new PE 13 after copying all data to a 1T desk drive and loaded Windows 8.1 Pro to replace my Windows 7 Home Edition, I set up the PE 13 and used 64 bit as suggested.)  NOW...When I locate my previous Project Assets on the 1T drive they show as "red blocks" with a play arrow in them where previously were thumbnails, but I can't retrieve them.  As such there is nothing to add to the timeline.  Last night I added to the NEW PE 13 a 22 min program I'm working on.  I have all those assets, thumbnails and everything is working as wonderfully as it did in 9, 11 and downloaded 13.
    Now in response to a previous question you asked:
    1. When you open Premiere Elements 13 Expert workspace, go to Publish+Share/Computer/QuickTime, do you see a list of presets when you explore
    the Presets" field there?  NO.... I can get to /Computer but there is no QuickTime there!  I did download QuickTime yesterday after your suggestion.
    2. You wrote
    Restarted PE13 and received the message "The selected file cannot be played becuse your system does not have the required compresser/decompresser (codec) installed.
    Where are you getting the selected file---- from Premiere Elements 13 Expert workspace Project Assets to where it was imported originally from a hard drive save location?
    Or other? What is the specific full name of one of these files that is giving the error message?
    With everything I've been trying, I'll have to recreate this series of events to answer directly.
    When you did the switch from Windows 7 Home to Windows 8.1, did you go 64 bit to 64 bit or 32 bit to 64 bit in operating system?  Help me with a way to determine what the bit was on 9 & 11!
    Were two separate computers involved or did you manage to change the operating all on one computer?  All on one Computer
    The major focus for me right now is to make sure I know what file triggers the ".....not have the required compressoer/decompressor (codec)"? And to know that
    you are in the Premiere Elements 13 Editor and not the Organizer 13 workspace.  Help me understand!!!!  I know the difference between "Add Media", "Project Assets", "Organizer", "Editor" and "Workspace".  But "Project Assets" and "Workspace" are part of "Editor", so I don't understand your question.
    WolcottVideo
        Can't access old ver. 9, 11 & 13 clips after Windows upgrade
        created by A.T. Romano in Premiere Elements - View the full discussion
    WolcottVideo (Mike Bruce)
    Thanks for the replies.
    My communications are in the threads or via Adobe Forums private message. The thread communication is preferred since then all share, and learn.
    Please try to reply to the post 4 questions or use the Adobe Forums private message system to send me a private message. To do the latter, click on my Adobe ID at the top of any of my replies in your thread. That should bring up my profile. Click on the orange envelope message icon to the right of what you see in order to set up and send your email to me directly. No one but you and I see the Adobe private message communications.
    Here is a basic description of where the details between us need to be confirmed...
    With the old computer system, you have Premiere Elements 9, 11, and 13 projects. And, you import media into each and see thumbnails for each of your imports in the project media area of the program (in version 11 and 13, called Project Assets).
    When you go to open a project in one of these programs and go to the project media area, do the source media thumbnails still show as before with image in the thumbnail? Or does the thumbnail have a display of circular arrows? If the present as before, can you drag the file from the project media area to the Timeline? If you cannot, it that the problem?
    We will be watching for your reply.
    ATR
    If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7087876#7087876 and clicking ‘Correct’ below the answer
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7087876#7087876
    To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"      
    Start a new discussion in Premiere Elements by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Quick NativeWindow questions.

    Hi,
    Two Quick Questions about native window actions (I am using AIR with HTML and JS):
    1. How do you "refer" to minimize button ? - So, when a user clicks minimize, it should do an action defined in javascript.
    2. How to define click event for System tray icon ? - So I can display something when my system tray icon is double-clicked.
    Thanks.

    1. Add an event listener to the window.nativeWindow object, listening for the NativeWindowDisplayStateEvent.DISPLAY_STATE_CHANGING  or DISPLAY_STATE_CHANGE events.
    2. Add an event listener to your SystemTrayIcon object. You can listen for click, mouseUp or mouseDown events, but doubleClick events are not dispatched by this object.

  • Can you change the default size of the Clip Monitor window in PE 13?

    Can someone please confirm whether it is possible to change the default size of the clip monitor window in Premiere Elements 13. Searching this question brings up a reply to someone who asked the same question about PE 7; the answer then was to open the clip monitor window, adjust its size and then leave it open for the duration of the editing session. Is this still valid for PE 13, or is there some other way of adjusting the default size of the window so that the next session opens at the same size as the last one? Help appreciated.
    CD.

    Major Sparky
    Just a supplemental observations
    There are certain actions even in the project that remains open that will close the opened, sized, and positioned Project Window.
    Also
    1. If you go to dual monitor system, typically the program does not remember the dual monitor setup when the project is saved closed and reopened.
    2. If you use the project without a dual monitor system and save close project with the Preview Window open, sized, and positioned, when you re-open the project, the Preview Window is gone and would need to be reopened, sized, and positioned again.
    ATR

  • Editing quick time movie clips with sound

    We are editing together some quick time movie clips but we can't get the sound to come up.
    Is there something we are doing wrong? Can you split the voice from the visual when you bring these clips into Final Cut?

    A QuickTime movie can be made from any number of codecs. Which one are you working with?
    If it's an MPEG video, chances are it will need to be demuxed. You can use MPEG Streamclip for this and other conversions.
    See this post for links to a tutorial: http://discussions.apple.com/message.jspa?messageID=10609676#10609676
    -DH

  • Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the

    Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the dock.

    Help please!

  • Hi all .hope all is well ..A quick trim question

    Hi all
    Hope all is well ......
    I have a quick trim question I want to remove part of a string and I am finding it difficult to achieve what I need
    I set the this.setTitle(); with this
    String TitleName = "Epod Order For:    " + dlg.ShortFileName() +"    " + "Read Only";
        dlg.ShortFileName();
        this.setTitle(TitleName);
        setFieldsEditable(false);
    [/code]
    Now I what to use a jbutton to remove the read only part of the string. This is what I have so far
    [code]
      void EditjButton_actionPerformed(ActionEvent e) {
        String trim = this.getTitle();
          int stn;
          if ((stn = trim.lastIndexOf(' ')) != -2)
            trim = trim.substring(stn);
        this.setTitle(trim);
    [/code]
    Please can some one show me or tell me what I need to do. I am at a lose                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    there's several solutions:
    // 1 :
    //you do it twice because there's a space between "read" and "only"
    int stn;
    if ((stn = trim.lastIndexOf(' ')) != -1){
        trim = trim.substring(0,stn);
    if ((stn = trim.lastIndexOf(' ')) != -1){
          trim = trim.substring(0,stn);
    //2 :
    //if the string to remove is always "Read Only":
    if ((stn = trim.toUpperCase().lastIndexOf("READ ONLY")) != -1){
       trim = trim.substring(0,stn);
    //3: use StringTokenizer:
    StringTokenizer st=new StringTokenizer(trim," ");
        String result="";
        int count=st.countTokens();
        for(int i=0;i<count-2;i++){
          result+=st.nextToken()+" ";
        trim=result.trim();//remove the last spaceyou may find other solutions too...
    perhaps solution 2 is better, because you can put it in a separate method and remove the string you want to...
    somthing like:
    public String removeEnd(String str, String toRemove){
      int n;
      String result=str;
      if ((n = str.toUpperCase().lastIndexOf(toRemove.toUpperCase())) != -1){
       result= str.substring(0,stn);
      return result;
    }i haven't tried this method , but it may work...

  • How do I get video clips from Windows 8 to mini ipad

    How do I get video clips from Windows 8 to mini ipad

    You can use a 3rd party app like Photo Transfer App.
    https://itunes.apple.com/sg/app/photo-transfer-app/id365152940?mt=8

  • How to divide the Prompts window in sections?

    Hello,
    I'm a beginner in Web Intelligence and BO, I have a report with a lot of prompt filters, I want to divide the Prompts window in sections, Is that possible? I'm using web intelligence to generate my reports.
    Thank you,
    Marcela

    Hi,
    Yes this is possible by using the concept of cascaded prompts in universe.
    Tools - List of Values - Create cascading list of values.
    In webi, you would see the prompts on same screen and in the same order you selected the list of values.
    Thanks,
    Jayendra.

  • I can not get iTunes or Quick Time to install on Windows xp machine.  I get

    I can not get iTunes or Quick Time to install on Windows xp machine. I get an error 1316 - c:\wndows\installer\iTunes.msi
    and then I get an error -1603 ?
    any ideas, oh I am trying to put iTunes & QuickTime on a Different Hard Drive Partion 'D:' not on the,
    Normal 'C:' Drive Partion... Any Help You can give me.
    My Email address is: [email protected]
    Thank You in advance! Al Adams
    SONY VAIO Windows XP

    I strongly recommend that you install iTunes to the default C: paths. You can change the perferences to keep the actual music files on your D: partition.
    Here is a place to start with the installer errors:
    InstallShield Consumer Central FAQs

  • I would like to be able to clip out a rectangular section of any screen on the iPad (not just web pages)

    I would like to be able to clip out a rectangular section of any screen (not just web pages and not just text pages) on the iPad and then email that clip or send it to Evernote or whatever.  I can't find any means of doing this.  I know how to take full screen shots and crop, but that's a poor solution.
    Thanks for any suggestions you may have.

    That is not a feature of iOS and no 3rd party app would be able to do that. You're going to need to continue taking a full screen shot and cropping it.

  • Crashing when clicking on clip appearance window

    Final Cut X  is crashing and logging users off when selecting/clicking anywhere on the "clip appearance" window.  Has anybody seen this happen?  We have about 34 iMacs doing this.  All other software installed seem to function well with no other issues.  Systems are currently running 10.6.8 with two partitions on a 500gb drive.  Thanx.

    What software version?

  • Quick script question

    Hi all,
    Could anyone advise me if i can add anything within - header('Location: http://www.mysite.co.uk/thankyou.html'); in the script below so as the page
    re- directs back to the main index page after a few seconds ?
    Thankyou for any help.
    <?php
    $to = '[email protected]';
    $subject = 'Feedback form results';
    // prepare the message body
    $message = '' . $_POST['Name'] . "\n";
    $message .= '' . $_POST['E-mail'] . "\n";
    $message .= '' . $_POST['Phone'] . "\n";
    $message .= '' . $_POST['Message'];
    // send the email
    mail($to, $subject, $message, null, '');
    header('Location: http://www.mysite.co.uk/thankyou.html');
    ?>

    andy7719 wrote:
    Mr powers gave me that script so im rather confused at this point in time
    I don't think I "gave" you that script. I might have corrected a problem with it, but I certainly didn't write the original script.
    What you're using is far from perfect, but to suggest it would lay you open to MySQL injection attacks is ludicrous. For you to be prone to MySQL injection, you would need to be entering the data into a MySQL database, not sending it by email.
    There is a malicious attack known as email header injection, which is a serious problem with many PHP email processing scripts. However, to be prone to email header injection, you would need to use the fourth argument of mail() to insert form data into the email headers. Since your fourth argument is null, that danger doesn't exist.
    One thing that might be worth doing is checking that the email address doesn't contain a lot of illegal characters, because that's a common feature of header injection attacks. This is how I would tidy up your script:
    <?php
    $suspect = '/Content-Type:|Bcc:|Cc:/i';
    // send the message only if the E-mail field looks clean
    if (preg_match($suspect, $_POST['E-mail'])) {
      header('Location: http://www.example.com/sorry.html');
      exit;
    } else {
      $to = '[email protected]';
      $subject = 'Feedback form results';
      // prepare the message body
      $message = 'Name: ' . $_POST['Name'] . "\n";
      $message .= 'E-mail: ' . $_POST['E-mail'] . "\n";
      $message .= 'Phone: ' . $_POST['Phone'] . "\n";
      $message .= 'Message: ' . $_POST['Message'];
      // send the email
      mail($to, $subject, $message);
      header('Location: http://www.example.com/thankyou.html');
      exit;
    ?>
    Create a new page called sorry.html, with a message along the lines of "Sorry, there was an error sending your message". Don't put anything about illegal attacks. Just be neutral.
    By the way, when posting questions here, don't use meaningless subject lines, such as "Quick script question". If you're posting here, it's almost certain to be a question about a script. It doesn't matter whether it's quick. Use the subject line to tell people what it's about.

  • I can't get home sharing to turn on on my computers. I have a PC running windows XP that has a large library on it that I want to access from a newer windows 7 PC. I have turned home sharing on in both, same apple ID. I just will not come up. Any ideas?

    I can't get home sharing to turn on on my computers. I have a PC running windows XP that has a large library on it that I want to access from a newer windows 7 PC. I have turned home sharing on in both, same apple ID. I just will not come up. Any ideas?

    Ugh, disregard.. it magically started working -_-

  • Using Windows 8.2 and copying large files over USB 3.0 to Segate Backup Plus USB hard drive - I get the following error:-

    Using Windows 8.1 and copying large files over USB 3.0 to Segate hard drive -  I get the following error:-
    Error 0x80070079: The semaphore timeout period has expired
     Using Windows 8.1 with a 3 - 4TB USB Segate drive that is using Microsoft's bitlocker.    It seems I can copy small files w/out issues; however, copying large files and directories causes this error.  Connectivity is USB 3.0 from a Dell
    Latitue3 e6520 to Segagate drive. 
    Can anyone share fix or determine methodology to fix?

    Hi Joe,
    Was the error gone when you turned off the Bitlocker from this drive?
    If no, please refer to this similar thread's solution to resolve:
    https://social.technet.microsoft.com/Forums/windows/en-US/c3fc9f5d-c073-4a9f-bb3d-b7bb8f893f78/error-0x80070079-the-semaphore-timeout-period-has-expired?forum=itprovistanetworking
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • Extended notifications: SWN_TEST_REMAP1

    has anyone come across this program? in configuring extended notifications there is a whole list of test programs but i haven't seen any guidance on when and how to run them. this one results in...nothing. is this a true negative or a false negative

  • Help! My MacBook air can't connect to the Internet

    My MacBook air is connecting to my home wifi but somehow suddenly it just can't connect to the Internet! So I'm having an exclamation mark on the wifi fan...... And my iPhone and iPod are connecting to the Internet perfectly well using the same wifi.

  • Userexit for Qty Changing after TO Confirmation and before PGI

    Hi Experts, I am seeking help for a scenario as below. 1. The delivery has a situation where after the Transfer order is confirmed and before the PGI is done, I have to put a check of Qty for non-stock items (they are not relevant for Transfer order)

  • How to determine price difference account for 301 MT?

    I know that 309 movement type is used for tranferring a material to another material . If the prices of two materials are different, price difference will go into transferring account determined by transaction key AUM. 301 movement type is used for t

  • Create new Application on Designer 6.0 with Oracle 8.1.6

    ORA-01403.....i tried placing all the rights but to no avail. i keep getting the error ORA-01403, no data found. It seems that many are having the same problem so i hope that the headstart team can help us on this.