Video displays duplicate image horizontally

Have an interactive exhibit running on Air Run Time on Windows XP.  When video runs inside the player window, the video is essentially duplicated horizontally so the image is squashed and plays two instances of the video top and bottom.  Plays fine on the Mac.  Also, running the SWF file in Flash Player does not exhibit the same problem.  But running on Air on this XP machine displays doubled image. What can be causing this?

Here is a shapshot of the "doubled" video on the right.  The touchscreen is on the left.

Similar Messages

  • How do I get a recordset to display three images horizontally?

    Hi,
    I'm using DWCS3 with MAMP.
    I want to display three images horizontally in a recordset. I have downloaded Tom Muck's extension horizontal looper and followed the instructions.
    However when I tried to add the recordset navigation bar I ran into some problems.
    If I add a repeat region to Tom Muck's extension then the page doesn't load.
    If I don't add a repeat region to Tom's extension everything works really well except only one image displays rather than three.
    Here is all of my code for the page. 
    Could someone help me please.
    <?php require_once('Connections/connQuery.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $currentPage = $_SERVER["PHP_SELF"];
    $maxRows_rshlimgs = 1;
    $pageNum_rshlimgs = 0;
    if (isset($_GET['pageNum_rshlimgs'])) {
      $pageNum_rshlimgs = $_GET['pageNum_rshlimgs'];
    $startRow_rshlimgs = $pageNum_rshlimgs * $maxRows_rshlimgs;
    mysql_select_db($database_connQuery, $connQuery);
    $query_rshlimgs = "SELECT * FROM image";
    $query_limit_rshlimgs = sprintf("%s LIMIT %d, %d", $query_rshlimgs, $startRow_rshlimgs, $maxRows_rshlimgs);
    $rshlimgs = mysql_query($query_limit_rshlimgs, $connQuery) or die(mysql_error());
    $row_rshlimgs = mysql_fetch_assoc($rshlimgs);
    if (isset($_GET['totalRows_rshlimgs'])) {
      $totalRows_rshlimgs = $_GET['totalRows_rshlimgs'];
    } else {
      $all_rshlimgs = mysql_query($query_rshlimgs);
      $totalRows_rshlimgs = mysql_num_rows($all_rshlimgs);
    $totalPages_rshlimgs = ceil($totalRows_rshlimgs/$maxRows_rshlimgs)-1;
    $queryString_rshlimgs = "";
    if (!empty($_SERVER['QUERY_STRING'])) {
      $params = explode("&", $_SERVER['QUERY_STRING']);
      $newParams = array();
      foreach ($params as $param) {
        if (stristr($param, "pageNum_rshlimgs") == false &&
            stristr($param, "totalRows_rshlimgs") == false) {
          array_push($newParams, $param);
      if (count($newParams) != 0) {
        $queryString_rshlimgs = "&" . htmlentities(implode("&", $newParams));
    $queryString_rshlimgs = sprintf("&totalRows_rshlimgs=%d%s", $totalRows_rshlimgs, $queryString_rshlimgs);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    <link href="styles/orderlist3.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="lightbox_assets/css/lightbox.css" type="text/css" media="screen" />
    <script src="lightbox_assets/js/prototype.js" type="text/javascript"></script>
    <script src="lightbox_assets/js/scriptaculous.js?load=effects" type="text/javascript"></script>
    <script src="lightbox_assets/js/lightbox.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    a:link {
    color: #999966;
    a:visited {
    color: #FFFFFF;
    a:hover {
    color: #006600;
    a:active {
    color: #666699;
    -->
    </style></head>
    <body class="oneColFixCtrHdr" onload="initLightbox()">
    <div id="container">
      <div id="header">
        <h1>Header</h1>
      <!-- end #header --></div>
      <div id="mainContent">
        <h3>Image catalog</h3>
        <p> </p>
        <table >
          <tr>
            <?php
    $rshlimgs_endRow = 0;
    $rshlimgs_columns = 3; // number of columns
    $rshlimgs_hloopRow1 = 0; // first row flag
    do {
        if($rshlimgs_endRow == 0  && $rshlimgs_hloopRow1++ != 0) echo "<tr>";
       ?>
            <td><p><a href="images/weddingprivate/mr_and_mrs_lowe_18_15.jpg" title="Mr and Mrs Lowe_18_15" rel="lightbox"><img src="<?php echo $row_rshlimgs['imagethumb_url']; ?>" alt="The bride to be getting ready" longdesc="http://The bride to be with her hairdresser" width="100" height="150" /></a></p>
                <p><?php echo $row_rshlimgs['caption']; ?> <img src="images/Untitled-1.gif" alt="spacer" width="170" height="1" /></p>
              <p> </p>
              <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
                  <input type="hidden" name="cmd" value="_s-xclick" />
                  <input type="hidden" name="hosted_button_id" value="6782561" />
                  <table>
                    <tr>
                      <td><input type="hidden" name="on0" value="Sizes" />
                        Sizes</td>
                    </tr>
                    <tr>
                      <td><select name="os0">
                          <option value="6x4">6x4 £3.00 </option>
                          <option value="7x5">7x5 £5.00 </option>
                          <option value="12x8">12x8 £6.50 </option>
                        </select>
                      </td>
                    </tr>
                  </table>
                <input type="hidden" name="currency_code" value="GBP" />
                  <input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online." />
                  <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
              </form></td>
            <?php  $rshlimgs_endRow++;
    if($rshlimgs_endRow >= $rshlimgs_columns) {
      ?>
          </tr>
    <?php
    $rshlimgs_endRow = 0;
    } while ($row_rshlimgs = mysql_fetch_assoc($rshlimgs));
    if($rshlimgs_endRow != 0) {
    while ($rshlimgs_endRow < $rshlimgs_columns) {
        echo("<td> </td>");
        $rshlimgs_endRow++;
    echo("</tr>");
    }?>
        </table>
        <table border="0">
          <tr>
            <td><?php if ($pageNum_rshlimgs > 0) { // Show if not first page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, 0, $queryString_rshlimgs); ?>"><img src="images/First.gif" border="0" /></a>
                  <?php } // Show if not first page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs > 0) { // Show if not first page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, max(0, $pageNum_rshlimgs - 1), $queryString_rshlimgs); ?>"><img src="images/Previous.gif" border="0" /></a>
                  <?php } // Show if not first page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs < $totalPages_rshlimgs) { // Show if not last page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, min($totalPages_rshlimgs, $pageNum_rshlimgs + 1), $queryString_rshlimgs); ?>"><img src="images/Next.gif" border="0" /></a>
                  <?php } // Show if not last page ?>
            </td>
            <td><?php if ($pageNum_rshlimgs < $totalPages_rshlimgs) { // Show if not last page ?>
                  <a href="<?php printf("%s?pageNum_rshlimgs=%d%s", $currentPage, $totalPages_rshlimgs, $queryString_rshlimgs); ?>"><img src="images/Last.gif" border="0" /></a>
                  <?php } // Show if not last page ?>
            </td>
          </tr>
        </table>
        <p> </p>
            <p> </p>
      <!-- end #mainContent --></div>
      <div id="footer">
        <p>Footer</p>
      <!-- end #footer --></div>
    <!-- end #container --></div>
    </body>
    </html>
    <?php
    mysql_free_result($rshlimgs);
    ?>

    Hi Charles,
    Use [Dr%] Variable formula as =if(IsNull([Dr%]);0;[DR%])
    Here IsNull returns the Boolean value of variable [Dr%] if its true then inserts 0 else the percentage values of failed tests based on the  total number of assembly tests performed.
    I Hope this is what you want to achieve....
    Thanks....
    Pratik

  • Itune music videos display no images but flashing vivid coloured background

    Having upgraded to itunes 7.1 sometime ago I cannot see me existing music videos or even new ones that I purchase. The screen only shows a vivid coloured background, sometimes flashing effect, but not a single image, despite hearing the chosen song ok. Whats the problem, dvd's I play are OK

    (Sorry about barging in, Timmy.)
    +The screen only shows a vivid coloured background, sometimes flashing effect, but not a single image, despite hearing the chosen song ok.+
    With those symptoms, especially if the colors are pink, purple or green, the "Disable Direct3D acceleration in QuickTime" section from the following document is worth a try:
    Troubleshooting iTunes for Windows XP and 2000 video playback performance issues
    But by all means, if there are newer video drivers available for your video card or display adaptor then it's worth upgrading them (as Timmy suggests) to see if you can still get good video with the Direct3D acceleration enabled.

  • How can I display three images in video rate succession (60 Hz)?

    For a structured illumination microscope application, I have developed a VI that creates three images and displays them in rapid succession (as fast as the loop will go) on a second monitor.
    From the naked eye it's pretty apparent that the loop is not displaying the images at video rate.  Is there a way (perhaps with some sort of buffer) to get them to display faster?  Is WinShow simply not going to be fast enough, and if not, what's an alternative method of displaying the images?  If it helps, the images need only be displayed once each (the loop was just for testing).
    Also, what is a way to measure the frame rate output of the images?
    (sorry for the sloppy code, new to LabView)
    Thanks,
    -T
    Attachments:
    illuminationpattern.vi ‏31 KB

    Hello,
    Why don't  you try drawing one window, call IMAQ WindShow once outside of the loop, then redraw that window each iteration within the loop.  Hopefully this stops the flutter of the window.  You can build a 3 element array of the 3 IMAQ images then use an index array to alternate through which image you want to be redrawn into the single window.  The constant calling of IMAQ WindShow seems messy.
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • I need to connect my Imac 27'' (newest version) up to 3/4 monitors (all 40'' LCD tv's with VGA and HDMI connections) with extended display to all external screens, not duplicate images. Is this possible?

    i need to connect my Imac 27'' (newest version) up to 3/4 monitors (all 40'' LCD tv's with VGA and HDMI connections) with extended display to all external screens, not duplicate images. Is this possible?

    I would suggest you visit an Apple dealer, preferably an Apple Store if there's one in your city, and ask for assistance in determining what you need. The questions and issues you bring up are rather complex to address in a technical support forum and would be better addressed in person where you and the salesperson can ask questions back and forth to arrive at the optimal setup.
    Regards.

  • Display a video stream (successives images)

    Hello!
    Thanks for looking after my post.
    I try to display a video stream (successives images) in Java component.
    With a simple swing component, it's not possible to display 25 fps for a 640x480 resolution.
    With SWT, we arrive to display about 15 fps for a resolution 640x480 but the use of the CPU is very important.
    Do you know an efficient system to display video stream?
    Thanks.

    Firstly if you're loading images with Toolkit you'll nbeed to use MediaTracker (see the Javadoc for full and clear instructions).
    Secondly, be aware of how long it takes to load image data, allocate the memory for it, and decode it. This is where you're going to suffer and it's the fundamental flaw in the plan of simulating video by flipping single frames: it's highly unlikely you'll manage it quickly enough. As above, 50ms is quite optimistic.
    You could do your loading up-front and buffer a load of images - there are a few strategies you could use for this. But bear in mind that (a) this is going to be very memory hungry, and (b) if your image load time is greater than your frame display time you're always going to be fighting a losing battle. But it should work for very small animations.
    Run yourself some tests: write yourself a simple test class which just loads an image in its main() method using a MediaTracker. It'll tell you how long loading the image takes. Of course, if you're doing it in an applet then you've got all sorts of other factors to consider and the load times will be high.

  • My Mac Pro is not displaying any images for videos or games, it is showing sound and working but nothing else. DVD player is also coming up with an error.

    My Mac Pro is not displaying any images for videos or games, it is showing sound and working but nothing else. DVD player is also coming up with an error. I'm not sure why neither is working, it just suddenly happened. I have done nothing different.

    Lao Bo,
    yes, you can locate and copy a file from your HD to a USB key using UNIX commands. If you know the exact name of the file which you’re trying to locate, try this:
    find / -iname filename -print
    This command will search your entire internal disk for the particular filename. If you know that it’s within a particular user account, then you can save search time with this variation:
    find /Users/username -iname filename -print
    Either variation of this command will print all files found which have the given filename. Presuming that you’re able to identify the correct file, you can copy it to a USB key using the command
    cp -p filename_returned_by_find /Volumes/USB_volume
    If you’re not sure which volume name your USB key has, this command will show you what the possibilities are:
    ls /Volumes
    Please let me know if you have any trouble with these commands.

  • How can I view then rotate or crop duplicate images

    My wife has a large photo collection (50,000+ images) and has created a copy of a hundred or so pictures to include in a video I'm working on.
    The problem is that I can't get Elements Organizer to display these images because they are "duplicate images".
    I had to switch to "Display | Folder Location" mode to even find the directory.  When I did I noticed the 10 subdirectories had not been imported, so I tried to import them and got this error:
        Nothing was imported.  The file(s) or folder(s) selected to import did not contain any supported file types, or the files are already in this Catalog.
    I realize that they are duplicates but I WANT to see them so that I can edit them (crop, rotate, etc).
    (Q) Is there a way to get Elements to "jump" me to the  original photo so that I can rotate or crop the "original".  NOTE: I  would use the Version Set feature or save my edits as a "new image"  altogether.  I think if this worked, I could create an "Album" that has the "duplicate" photo's my wife  has given to me and achieve what I need to do.
    I'm brand new to Elements (previously I used ACDSee and it could do this without any hassle).  I've heard and read that Elements 9's Organizer is much improved so I wanted to give it a try.
    (Q) Does Elements have a simple checkbox to allow me to work with duplicate images?
    (Q) Is the solution to create another catalog?    I've done this to work around this problem (for now).
    Also
    (Q) Does Elements 9, have a way to show all of the images in all of the folders underneath a given folder?  I found that if I have a directory that contains 10 sub-directories, when I'm in the top-level directory no images are shown.  In ACDSee, it would show me all of the images under a given directory including all of the sub-directories.  Is this possible to do in Adobe Elements 9?
    Thanks for any help.

    The organizer is not a browser, it is a database : even if it can show photos in your folders structure, it only works on the files wich have been 'imported' and registered in the catalog. It can show your registered pictures displayed according to the real folder structure based on the paths registered with each present file, but you'll have problems if some upper level folder is empty.
    On the other hand, the items registered in a catalogue can't be duplicates, and the Organizer prevents duplicates to be registered. There is no simple one click way to override this constraint, which would mean a different database 'key', that is to rename the duplicates you want to register.
    Practical way : since you have to rename the duplicates before importing them, you could do this directly in Windows or any other freeware like Faststone photoresizer.
    Or you could open those pictures directly from the editor, browsing in your folder structure.
    Imagine you have duplicates in a folder and want to rename them and import them using only PSE :
    - From the editor, use the 'process multiple files' to export the files from this folder and rename them, for instance 'IMG_0012.jpg' + 'dupl' stating the same destination folder
    - Try again to 'get files and videos' from the organizer.

  • Aperture 3 project does not display any images in one Project

    This is a strange situation.  The bullets below outline the situation:
    The project does not display any images
    When I place the pointer over the project it shows there are 500+ images
    I have located the RAW images stored in my aperture library
    I can pull up the images using a smart folder and searching for photos taken on the event day
    This is happening only to one of my projects that I know of (weird!!)
    I have tried to 're-add' the image by both importing and dragging and dropping into the project, neither works
    I tried the following basics:
    Fixed permissions
    Rebuilt the database
    Tried to re-import the data, but when I have the 'don't import duplicates' these are not an option
    Found the images in my Aperture library
    I created another project and drug all of the images into that project
    Any idea how I can fix this?
    My fear is that if I delete the original project, the original master images will be deleted.

    The most common cause of this is some sort of stuff in the search box at the top of the browser that you don't expect to be there. Just clear it and all your images should show up.
    RB
    One note - if you drug your images from one project to another it moves them vs copies them unless you hold down the option key.

  • Satellite L650-1MM - Video display issue

    Greetings from Finland.
    So, about a month ago I bought this laptop of mine, Satellite L650-1MM, and I've been wondering what the heck is the problem with video display. Dunno for sure is it a problem with the hardware or just something with the computers settings. I mean, even on youtube, I got so pixelated image when watching some 720p HD videofootage, that it hurts. Here's some evidence: [http://img822.imageshack.us/img822/6623/youtubena.jpg] And yes, I got the latest Flash Player plug-ins and all, so that couldn't be it.
    And maybe, possibly, when I watch some ********** movies, tv-series or something, they all looke so pixelated. And I know that there's codecs and all, but I'm positive, that I got all that handled. As a matter of fact, in the beginning I had worse video display, but with codecs I got it a little better. Still, I'm far from satisfied. Now, I've heard that there might be some problems with Windows 7 and video display, but you know, can't be sure.
    So, basically I'm here to rule out the possibility, that there might be some problem with the hardware. Could there be? The screen looks just fine, when normally idling and for example surfing the net, but streaming videos or watching some videos, oh man, oh man, it's so pixelated. I got the latest display drivers from Toshiba, BIOS-drivers too. Would it be any help, if I got the latest drivers straight from AMD's site (Ati Mobility Radeon HD 5650)? Does that even work? I mean when Toshiba updates their own display drivers and all, and very rarely what I've heard.
    Here's my laptops specs:
    Satellite L650-1MM
    Microsoft Windows 7 Home Premium 64-Bit
    BIOS-version 1.80
    Intel Core i5 CPU M460 @ 2.53 GHz
    4096MB RAM
    HDD ~600GB
    Ati Mobility Radeon HD 5650 version=8.723.2.0
    15"6, 1366x768
    True Color (32-Bit)
    Conexant Audio Driver For AMD HDMI Codec version=4.98.26.0
    So please, If there's any hint you can give me, I would very much appreciate it!
    edit.
    Also, just remembered, that I had one more problem. When connecting HDMI to my 40" HDTV, and when I close my laptop screen, the sound starts to bug, and in some cases video too. So I have to keep my laptop screen open, so I can watch movies without any sound or video problems. What's with that?
    Message was edited by: lapa

    Hi
    Please take a look to the settings called Choose what closing lid does. This can be found in the control panel -> power options
    On the left you can see this option.
    There you should choose Do nothing.
    Furthermore in Advanced Power settings you can find the option called Multimedia settings
    There is a suboption called When playing video. Both settings should be set to Optimize video quality
    check it out!

  • I'm struggling to find a way to find and delete duplicate images

    Hi,
    I recently upgraded to a newer iMac and Aperture 2 to handle my growing library of photos. Since I started college two years ago, I've taken close to 20,000 images. I stored and organized those as I always had with my others in iPhoto. Now when I imported my iPhoto library (~30,000 images) into Aperture, I made sure to click the "do not import duplicates" box. However, as I scrolled through the library, just checking, I came across what has to be several hundred duplicate images that were created whenever I rotated my photos in iPhoto.
    Strange thing is, it didn't happen with my new images. These are all old jpeg images.
    I'm not sure (and I doubt) if it has anything to do with the new photos being in RAW format, but regardless, it's taking up a lot of space.
    Is there a way to search for and delete these duplicates? I noticed it made a stack for each image with the original and the rotated version, if that means anything.
    Just something to enter in the search box or whatever to bring them all up and delete them would be great, because I've been trying forever and asking around and haven't found a solution.
    One other small question: If I've backed up my Aperture library using Time Machine, does it make any sense to make a Vault on another (or the same) drive?
    Thanks in Advance,
    Chris

    Unfortunately iWeb cannot read or import previously published files, only generate them.  You'll have to recreate your site from scratch.
    However, Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing files, image, audio, video, etc., from the published site in the recreation of the site.
    OT

  • A Fast way to display compressed images?

    Hi,
    I currently working on iPhone and trying to display (home-made) compressed images in an UIImageView : it is updated as soon as I have finished building the new one. I already do it with raw (BMP) images but I use them at 2D GLTextures that I found faster than the use of an UIImageView.
    To update the view with compressed images, I do:
    //member in .h
    UIImage * myImage;
    UIImageView * MyImgView;
    // In .m
    -(void)UpdateImageWithData :(NSData *) p_Data
    myImage = [UIImage imageWithData:p_Data];
    MyImgView.image = myImage;
    This works quite well, but I encounter a major drawback for me : the frame rate of this is never better than 10 fps. I build my images faster that 25 per second, but cannot display them that fast.
    I tried to change compression quality and compression methods (PNG interlaced or not, JPEG (411, 421, 444, varying quality from 10 to 100%), etc.) but I always have the same frame rate. So, I am assuming that the max frame rate you can have with an UIImageView is limiter whatever the format is.
    Now, I am wondering a few things :
    - Am I right about this limitation or do you see any flaw in my discussion?
    - Is there some way to 'accelerate' the rendering with an UIMageView?
    - Is there another faster way to display compressed images (or at least any kind of JPEG images)
    - Is there a (fast) way with UIKit (or any compatible lib) to retrieve the raw image so that I can use my first method and display it as a 2D OpenGL Texture?
    - Since from one image to the other only a few changes occur, do you see any way to update only what actually changed in order to save some CPU?
    - Do you think that the problem about UIImageView frame refreshement rate is linked with the iPhone Video Processor or with its CPU? (thus the new 3GS may help me solve this problem)
    Thank your for reading this untill the end.

    Hey, guess what, I had pretty much this same exact problem. Client wanted full screen 30 fps animation. Here's what I found experimenting with full screen sizes:
    - Whether you use UIImageView conveniences, or load and draw yourself in a UIView subclass, makes no apparent difference.
    - If you're doing basic Quartz drawing, never a problem keeping 30 fps up.
    - But as soon as you change the image in a UIImageView, or draw it with CGContextDrawImage() yourself in a UIView, then the frame rate plummets to about 10 fps on an iPod touch 1G, or 20-25 on an iPhone 3GS.
    For my purposes most of the full screen animation could be put into movies, and the motion clipped down to manageable sections in the interactive portions (and anyway, the fps doesn't really matter for those background bits). If it's not for you, then I guess you need to go down to OpenGL and see how that works out.

  • Problem displaying the image

    I am having a trouble with display an image. My image is put in the base directory of my workspace and my IDE is Eclipse. However, I just can't get the image to display...
    It is at the bottom of the code...
    package ca.carleton.comp3004.client.ui;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import javax.imageio.*;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.border.TitledBorder;
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    import java.awt.event.*;
    import java.io.File;
    import java.io.IOException;
    import ca.carleton.comp3004.client.model.Model;
    import ca.carleton.comp3004.util.AppUtils;
    import ca.carleton.comp3004.util.UiUtils;
    public class GamePanel extends JPanel
         private JPanel bottomStuff;
         private JScrollPane cardPane;
         private JButton requestCards;
         private JPanel centerStuff;
         private JPanel[] playerStuff;
         private JLabel[] playerName;
         private JLabel[] playerNumCards;
         private JLabel[] playerScore;
         private JPanel topStuff;
         private JLabel unoCode;
         private JLabel timeLabel;
         private JButton leave;
         private Image board = null;
         //Icon BoardImage = new ImageIcon("C:\Users\tzaid\Desktop\steve stuff\Johnny_Workspace\GameBoard.png");
         //private ActionListener buttonlistener;
         private Model model;
         private class CardRequestListener implements ActionListener {
            public void actionPerformed(ActionEvent theEvent) {
                  AppUtils.invoke(new Runnable()
                     public void run()
                          model.requestCards();
         private class CardButtontListener implements ActionListener {
            public void actionPerformed(ActionEvent theEvent) {
                 final int cardIndex = Integer.parseInt(theEvent.getActionCommand());
                 AppUtils.invoke(new Runnable()
                    public void run()
                         model.playCard(cardIndex); //****note: extract cardNum
         private class LeaveListener implements ActionListener {
            public void actionPerformed(ActionEvent theEvent) {
                 AppUtils.invoke(new Runnable()
                    public void run()
                         model.leave(); //****note: not in protocol yet
         // actions
         CardRequestListener myCardRequestListener = new CardRequestListener();
         CardButtontListener myCardButtonListener = new CardButtontListener();
         LeaveListener myLeaveListener = new LeaveListener();
        public GamePanel(Model model)
             this.model = model;
             createComponents(this);
         * Creates the components.
        private void createComponents(JPanel container)
             container.setLayout(new BorderLayout());
            // chat panel
            CreatePanels();
            container.add(centerStuff, BorderLayout.CENTER);
            container.add(bottomStuff, BorderLayout.SOUTH);
            container.add(topStuff, BorderLayout.NORTH);
          //  Graphics g = new Graphics();
          //  g.drawImage(board, 0, 0, null);
         * Creates the chat panel for chat room functionality.
         * @return A panel containing chat room controls.
         * @see JPanel
        private void CreatePanels()
             topStuff = new JPanel();
             unoCode = new JLabel("UNO Code: ");
             timeLabel = new JLabel("Time: ");
             leave = new JButton("Leave Game");
             leave.addActionListener(myLeaveListener);
             topStuff.setLayout(new BorderLayout());
             topStuff.add(unoCode, BorderLayout.WEST);
             topStuff.add(timeLabel, BorderLayout.EAST);
             topStuff.add(leave, BorderLayout.NORTH);
             topStuff.setBorder(BorderFactory.createLineBorder(Color.black));
             //******note: need to specify size*****
             int size = 5;
             centerStuff = new JPanel();
             playerStuff = new JPanel[size];
             playerName = new JLabel[size];
             playerNumCards = new JLabel[size];
             playerScore = new JLabel[size];
             centerStuff.setLayout(new FlowLayout(FlowLayout.CENTER, 40, 40));  //need to change later so is around table
             for(int i = 0; i<size; i++){
                  playerStuff[i] = new JPanel();
                  playerStuff.setLayout(new BorderLayout());
              playerName[i] = new JLabel("no name" ); //****get player name here
              playerNumCards[i] = new JLabel("0");
              playerScore[i] = new JLabel("0");
              playerStuff[i].add(playerName[i], BorderLayout.NORTH);
              playerStuff[i].add(playerNumCards[i], BorderLayout.CENTER);
              playerStuff[i].add(playerScore[i], BorderLayout.SOUTH);
              playerStuff[i].setBorder(BorderFactory.createLineBorder(Color.black));
              centerStuff.add(playerStuff[i]);
         bottomStuff = new JPanel();
         cardPane = new JScrollPane();
         requestCards = new JButton("Request Cards");
         requestCards.addActionListener(myCardRequestListener);
         bottomStuff.setLayout(new BorderLayout());
         bottomStuff.add(requestCards, BorderLayout.WEST);
         bottomStuff.add(cardPane, BorderLayout.CENTER);
         bottomStuff.setBorder(BorderFactory.createLineBorder(Color.black));
    public GamePanel()
         setPreferredSize(new Dimension(790,572));
         setMaximumSize(getPreferredSize());
         setMinimumSize(getPreferredSize());
         setSize(getPreferredSize());
         try
    board= ImageIO.read(new File("GameBoard.png"));
    getGraphics().drawImage(board, 0, 0, null);
         catch (IOException e)
         e.printStackTrace();
    /* private JPanel createMessageListPanel()
    JPanel messageListPanel = new JPanel(new BorderLayout());
    JScrollPane scrollPane = new JScrollPane(messageList = createMessageList(),
    JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
    JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    scrollPane.setAutoscrolls(true);
    messageListPanel.add(scrollPane);
    messageListPanel.setBorder(new TitledBorder("Messages"));
    return messageListPanel;
    * Creates message list.
    * @return A text area to store messages in.

    Look like a bad video card. Are you eligible for Apple's Repair extension programs?

  • Displaying JPG images in PDF report

    Hi
    We developed a report, wich generates modul documentation from designer repository. In the repository the JPG images are attached to modules. The images have different sizes. The report reads the modules description and displays the images attached to modules.
    The report resizes the images. Seems like the image wide is resized to fit perfectly in the containing frame.
    This behavior is god when we have a bigger image, than the containing frame. But if we have a smaller image than the frame, the reports enlarges the image.
    How can we prevent this behavior?
    Thanks

    I think for that particular image object in layout model, if you can set the vertical and horizontal elasticity to fix, the image will not resize.
    Thanks
    Rohit

  • OPENING VIDEO I LOSE IMAGES THAT DON'T SHOW

    GREETINGS, I COMPLETED A RECENT PRODUCTION.
    BUT WHEN I OPEN THAT FILE IN ELEMENTS PREMIERE
    THE IMAGES I INSERTED INTO PRODUCTION ARE NOT DISPLAYING.
    WHERE MIGHT THEY BE? WHILE IN PRODUCTION THEY WERE DISPLAYING IN MY
    PROJECT ASSETS, EASY TO UPLOAD INTO MY PRODUCTION.
    I'M FINISHING PRODUCTION BUT I DO NOT SEE THE IMAGES ALREADY IN
    PROJECT ASSETS.
    HOW CAN I GET THEM TO DISPLAY, SO THAT I CAN MOVE FORWARD IN PRODUCTION.
    THANKS, RAS

    rastaman
    What version of Premiere Elements and on what computer operating system is it running?
    For now I will assume Premiere Elements 13 on Windows 7, 8, or 8.1 64 bit.
    1. Go to and open Project Assets palette. Look to the top left of Project Assets and see three icons.
    From left to right, they are Show Hide Video, Show Hide Image, and Show Audio. Please assure that all 3 are in the Show mode.
    2. Since your opened project apparently has no assets, please check the name of the opened project to assure that you have not somehow overwritten the project that you are looking for and have opened a new project.
    3. If you have worked with the AutoSave On during the creation of the project, go to the Adobe Premiere Elements AutoSave Folder and
    determine if you can find an AutoSave file which will have most of the content of the missing project. In Windows 7, 8, or 8.1 64 bit, the default location
    of that Adobe Premiere Elements AutoSaves Folder is
    Libraries
    Documents
    Adobe
    Premiere Elements
    13.0 , if you are working with 13
    and in the 13.0 Folder is the Adobe Premiere Elements AutoSave Folder which has the AutoSave files.
    Please review and consider. Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

Maybe you are looking for

  • Images in Answers

    Please tell me that in the new Captivate you allow more custom feedback that in the last. I run a Chemistry oriented site and need ot be able to describe organic molecules using images, use exponents and subscript for atomic notations not only in the

  • XML data (image and accompanying filename)?

    Hi, I just recently viewed some video tuts and read some Flex material so I'm a little more comfortable with all of its syntaxes and such. However one thing that eludes me when I tried to do this on my own was calling an XML file in mxml and having F

  • Error installing VirtualBox Guest Additions

    Hello. ¿Cuál es el motivo por el cual a la hora de instalar VirtualBox Guest Additions me sale lo siguiente? (1) 0 - ENTER:  DriverPackageInstallW (1) 0 - Installing INF file 'C:\Program Files\Oracle\VirtualBox Guest Additions\VBoxGuest.inf' (Plug an

  • HELP! Converting ascii to its decimal codes

    Does anyone know how to convert ascii code to its decimal equivalent? Is there a simple function that can do this? Thanks for any help!!

  • Addchild browser resize

    Hey Guys! I got my external swf to center...However, when I resize my browser the external swf dissapears off the screen (I can still hear it's music though) Anybody have any suggestions? Heres my class code: package {      import flash.display.Sprit