How to diplay something on image

Hi,
I am new to java and swings...
I want to draw something on image..
I have created a JFrame which has:
a image 400*400
three checkboxes naming point and circle...
and a submit button..
I want to show points on image with a 'dot' at (10,10), (40,69), (100.123) and (320,200)
I want to draw 2 circle on image at 60,60 with radius 4 and at (123,123) with radius 6
Now When i check point and submit it ---> it should show all the point at (10,10), (40,69), (100.123) and (320,200);
and when i check circle and submit it ----> it should show me both the circles...
and when i check both ---> it should show everything...
I am not getting how to proceed with it..
How should i draw something on image...
Pls help me out...
Thankx...

Start reading:
[http://java.sun.com/docs/books/tutorial/uiswing/index.html]
[http://java.sun.com/docs/books/tutorial/2d/index.html]
Much luck and HTH!

Similar Messages

  • How do I change the image title when it is uploaded from iphoto to iweb. At the moment the image title is /shapeimage_1.png and I would like to put in something more relevant than just shapeimage?

    How do I change the image title when it is uploaded from iphoto to iweb. At the moment the image title is /shapeimage_2.png and I would like to put in something more relevant than just shapeimage_2?

    When you drag images from iPhoto to iWeb, iWeb retains the original filename.
    When you use a mask, iWeb creates a png file with the shapeimage name.
    So do not use a mask and crop your images before dropping them on the iWeb canvas.
    When you use an irregularly shaped mask, then png files are created. They have to be png because of the transparency of the shape.
    You can use a 3rd party application to create the png images yourself, and give them a proper name.
    Or use the published png files, rename them and drop them back onto the iWeb canvas, while first removing the previous images.

  • How do i make an image pause in a flash movie clip

    Please can someone help me. I am trying to find out how to pause or stop an image in a basic flash movie clip,  after it has entered from one side and before it exits the other side.
    I have been trying to work it out myself for three days but no joy. I am practicing  for a test with a training agency which gave me a disk to use but nowhere in it does it say how this is done. I am also having a lot of difficulty making stop start buttons work with this movie clip. I am using a trial cs5.5 version of Flash which expires in 7 days so i need to know this soon. I am up to speed on most of the features, its just this one thing that has me stumped. A lot of the tutorials or examples  i have found on the net are very long winded and hard to follow exactly. Could someone let me know, step by step the sequence i should follow after i have created an object  and made it go from one side of the stage to the other.

    Hi
    Thank you for getting back to me. Yes i am using a timeline tween. I have an image on my stage which moves in from one side and out the other side. I am trying to stop or pause the image. The effect i will be asked to reproduce in my exam will be something very much like the banner on the website http://www,iactweb.com. If you go to this website you will see images arrive on the banner and pause before exiting the other side. I am fairly up to speed on all the aspects of getting this effect but i have forgotten what i learned during the course on how stop or pause the images. I am using the trial cs5.5 version of flash . Thanks again for getting back to me.

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • How do I add multiple images into one file?

    I'm sure this is something that's been covered in another post (or even in the help portal) but I think my wording in my search terms are not correct or... I don't know, because I just can't find what I'm looking for.
    I want to know how to add multiple images into one file/one image, both horizontally and/or vertically. To give you an idea of what I mean, check out :
    http://www.best10apps.com/apps/comic-story,531596060.html
    If you scroll down, you'll see a heading entitled : Screenshots of Comic Story. Notice how there's 3 pictures (divided by borders). 2 of those pictures are side by side, and 1 of them is below the first 2 pictures.
    I want to know how to add different pictures/images and put them into one picture.

    One way is to create template PSD files and populate them with your images using Photoshops scripts.
    Photo Collage Toolkit UPDATED June 12, added Picture Package Support via PasteImageRoll and BatchPicturePackage scripts.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    There are eleven scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    Documentation and Examples

  • How do I add an image specified by a URL to an application?

    I am building a Java FAQ page for my college and I am stumped by this question: How do I add an image specified by a URL to an application?
    I am trying to do something like this:
    try {
    ImageIcon logoImage = new ImageIcon(new URL("http://www.gcodes.net/tutor/javafaq/Java%201130%20FAQ/images/comments.png"));
    } //end try
    catch(MalformedURLException e) {
    }//end catch
    //add image to JLabel
    topLogoHolder.setIcon(logoImage);I've looked through my Java textbooks and done many google searches. Please help.
    -Matt

    Are you having problems with logoImage being undefined?
    Because, as you have it, logoImage only exists within the 'try' block.
    Either call topLogoHolder.setIcon(logoImage) within the 'try' block, or declare the logoImage outside the 'try' block and set it within the 'try' block.
    I'd say you might as well call setIcon within the 'try' block, if you don't need the logoImage value elsewhere. Because, if you get that exception that you are catching, your ImageIcon won't be initialized right, anyway.

  • How can I transafer my images please from PC to iphone 4s

    how can I transafer my  images ,please, from PC to iphone 4s.I dont understand how can  I do it. Where is the options to add photos..I just remember that I must synchronize something..I've tried to find in internet but I see another interface of itunes on all kind of videos? I have anotherinterface in itunes.Ive allready update my itunes and iphone and have a latest version of IOS ..What is f...g  that?please help me..

    Also, the reason your iTunes interface may look different may be covered by the following in iTunes: Syncing photos
    Click the Device button in the upper right corner. (If viewing the iTunes Store, click the Library button in the upper-right corner first.) If you don't see your device, choose Hide Sidebar from the View menu.

  • How can you add an image in Mail without being an attachment?

    How can you add an image in Mail without being an attachment?
    In otherwords I'd like to put my logo in the email not as an attachment but as an image.
    Is there a simpel solution to this problem?

    PBN1 wrote:
    How can you add an image in Mail without being an attachment?
    You don't.
    It's not possible. The e-mail protocol is designed for text; anything else has to go as an attachment.
    Different mail clients (such as Mail.app, the mail client bundled with Mac OS X) may have different ways of handling such attachments, but they are still attachments. Each mail client has its own rules and methods, so one may display a picture as if it were in the body of the message, but another client may do something completely different.
    A way of faking it is to format your message in HTML (which is a kind of text). The image is hosted on a remote server, not added to the message; instead, you include a link to it in the body of the message, as you would when building a web page. (This is also what the two tips helpfully provided by X423424X do, except that the link to the image is added in the signature, rather than the body of the message.) What exactly happens to it is, again, at the discretion of the mail client. In my case, for instance, displaying images in HTML messages is turned off, and will stay resolutely off.

  • How do I source an image with HTML in Adobe Muse?

    Hello, I am wanting a horizontal slideshow for images and I got the code to work nicely in my muse website and all I need to do now if populate it with images. I have looked into the syntax for placing an image and I am not too sure how to handle the sourcing (as I've never done code before).  It's to go something like this:
    <img src="url" alt="some_text">
    I have the images to place in the slideshow sized, cropped, and ready to go in, but I do not know how the input the syntax to "source" my images - they are just sitting in a folder in "my pictures" on my desktop. My workplace has a server where we all can access the same files...will that help?  I've seen where people reference images in their code simply by typing the web address of their website with the image name at the end....which confuses me! -> how do I upload an image to my Muse website without it being seen and then reference it in a slideshow?  That process doesn't seem to make sense. I'm lost! Help please!

    Here are a couple o links that will help in your quest and will answer 95% of your questions.
    http://www.w3schools.com/html/html_images.asp
    http://www.htmlgoodies.com/primers/html/article.php/3478181/Basic-HTML-Images.htm
    http://www.adobe.com/products/business-catalyst/faq.html
    http://www.w3schools.com/js/default.asp
    http://jquery.com/
    The other 5% is how well will Muse play with all that. To that I cannot  answer fully because I haven't tested every scenario. Again, the inherent nature of Muse is "designed" to stray away from custom coding. Also in your previous post it is a little unclear as to your where all your Muse folders/files are residing. IE: on your companies server or on BC or a bit of both. I know ultimately all your trying to do is point to something. Seems simple enough right? And there may in your developement come a time when you need the more advanced CMS features, which is why BC seems logical.
    What you find along the way is that it can get more involved then you anticipated. Certainly if you can make it work then go for it. The problem is at times, while things can seem simple in theory, without sufficient practice employing those theories (the coding/the syntax) then any # of errors can happen leaving you scratching your head and cursing why you bothered in the first place. Another option is to rethink your strategy. Is it really all that important to have the uber cool linear continuous scrolling effect? Will this define my site? Can I implore some imagination and thinking and make it easier on myself by using the tool at hand (Muse) to it's max to achieve the end goal?
    Just some food for thought but as previously stated if you can make it work then go for it. And if the mods or other users can be of more help than I, then that would be great as well!
    Happy Holidays, good luck, and please report your findings :-)
    Edit - With so much going on myself, I forgot to mention that (when you have all your  i's dotted and t's cossed) you could try inserting the script into the html for head feature via the metadata tab in your page properties.
    Message was edited by: GVD321

  • How do i take a image of a wine glass and wrap a image around it in indesign cs6

    How do i take and image of a wine glass and wrap another image around it!

    InDesign isn't the correct application for such a manipulation.
    If the "image of a wine glass" is a 2-dimensional image, you may be able to create the illusion of something wrapped around it in Photoshop, but there won't be any automatic solutions. Fundamentally, what you're proposing is a function of 3-D modeling.

  • How do I create an image like this?

    Completely new to PS. How would I create an image like this with text? https://www.facebook.com/photo.php?fbid=10151570901245020&set=pb.50687255019.-2207520000.1 366989903.&type=3&theater
    A link to a tutorial would be helpful.
    Thanks!

    Hi there,
    Are you referring to the text, the color effect, or both?
    Adding type is very easy - just grab the Type Tool from the tool bar. The article linked above provides some great tips for editing type in Photoshop.
    As is the case with many "how to's" for Photoshop, there are several ways to acheive the colorized effect like the one applied to image you linked to. One method is to use Adjustment Layers, which I have outlined below.
    1. With your image layer active (it will be highlighted in blue in your Layers panel, as shown below), create a selection of the area you'd like to colorize. I'm using the Polygonal Lasso Tool to create a diagonal selection - to do so, I held down the Shift key on my keyboard as a created my diagonal lines. This might take a bit of practice, but you'll get the hang of it quickly.
    2. Then, in your Adjustments panel (if you don't see it, go to Window > Adjustments), click on the Curves adjustment layer, as highlighted below. Now you can play around with the curves to get the effect you'd like. (Here's a quick guide on using the Curve tool)
    3. To select the other areas of your image, command (Mac) / control (PC) click on the adjustment layer thumbnail (highlighted below). Then, go to Select > Inverse.
    4. Now we want to deselect part of our selection. Grab the Quick Selection Tool from the toolbar and set it to Subract from selection. Then, simply drag the selection brush over the area you want to deselect. In my case, I only want to have the upper-left corner of my image selected.
    5. After you have your selection, click on the image layer and add a Curves adjustment layer like before.
    6. Repeat steps 3-5 for the other corner of your image and you should end up with something like this:
    The nice thing about using adjustment layers is that you can always change them - just double click on the Adjustment layer thumbnail (highlighted in step 3).
    Alternatively, you can select areas of your image and fill the selections with flat colors on separate layers. You can then go in a change the Blend Mode and Opacity for each layer.
    Feel free to reply with any questions!
    Kendall

  • How to set a jpg image ContentType of JEditorPane

    Hi how can i display an image on a JEditorPane like image.jpg?
    I tried myEditor.setContentType("image/jpeg") but it still displays characters instead of the image.
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    public class Pagina extends JFrame implements Runnable {
         JEditorPane e;
         public Pagina(){
              super("fds");
              e = new JEditorPane();
              e.setEditable(false);
              e.setContentType("image/jpeg");
              Container c = getContentPane();
              c.add(e);
              setSize(400,400);
              setVisible(true);
              Thread t = new Thread(this);
              t.start();
         public void run(){
              while(true){
                   try{
                   e.setPage( "http://10.0.0.5/SnapShot.jpg" );
                   Thread.sleep(1000);
              catch(IOException ioe){}
              catch(InterruptedException ie){}
         public static void main (String [] args) {
              new Pagina();
    }

    In your current app, you are trying to redisplay an image in some infinite loop. This smells bad to me. I am no expert in java graphics, far from it, but if you want to paint a background image within a JEditorPane, since JEditorPane is a component and has to paint itself, you could override its paintComponent method and draw an image inside there using the Graphics object.
    another way is to put the JEditorPane on top of a JPanel that draws your picture. In both instances, I think that you'll need to set the JEditorPane's opaqueness to "false".
    Something like so, perhaps?
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.net.URL;
    import javax.imageio.ImageIO;
    import javax.swing.BorderFactory;
    import javax.swing.JEditorPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    class ImageJEditorPane extends JPanel
        private static final String IMAGE_FILE1 = "disc/d1/f/image1.jpg";   
        private static final String IMAGE_URL = "http://10.0.0.5/SnapShot.jpg";
        private BufferedImage myImage = null;
        private JEditorPane editorPane;
        ImageJEditorPane()
            try
                setPreferredSize(new Dimension(800, 650));
                setBorder(BorderFactory.createEmptyBorder(15, 15, 15, 15));
                setLayout(new BorderLayout());
                //myImage = ImageIO.read(new File(IMAGE_FILE1));
                myImage = ImageIO.read(new URL(IMAGE_URL));
                editorPane = new JEditorPane()
                    @Override
                    protected void paintComponent(Graphics g)
                        g.drawImage(myImage, 0, 0, null);
                        super.paintComponent(g);
                editorPane.setPreferredSize(new Dimension(1200, 1000));
                editorPane.setOpaque(false);
                JScrollPane scrollPane = new JScrollPane(editorPane);
                add(scrollPane, BorderLayout.CENTER);
            catch (IOException e)
                e.printStackTrace();
         //or you could do it this way
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            g.drawImage(myImage, 0, 0, null);
        private static void createAndShowGUI()
            JFrame frame = new JFrame("ImageJEditorPane Application");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.getContentPane().add(new ImageJEditorPane());
            frame.pack();
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            javax.swing.SwingUtilities.invokeLater(new Runnable()
                public void run()
                    createAndShowGUI();
    }Edited by: Encephalopathic on Dec 21, 2007 3:09 PM

  • How can I determine which image was clicked in 3D carousel?

    I have been modifying some 3D carousel code that I found in hopes that I can get it such that when image "resolv2.jpg" (or any of my other images) is clicked on at the front of my carousel, it goes to a specific webpage. By just replacing "moveBack(event.target) from the toggler section of the code with "navigateToURL:(newURLRequest('http://google.com'), the target DOES sucessfully go to google when clicked on. However, I want to modify this code by altering the else statement to say something to the effect of "else if event.target (clicked on object) is 'resolv2.jpg' THEN go to google". So essentially, my question is how can I determine which image was clicked? Here is the entire code with the area I was altering bolded:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationComplete="init();" backgroundGradientColors="[#000033, #000033]" backgroundGradientAlphas="[1.0, 1.0]">
    <mx:Script>
              <![CDATA[
    //Import Papervision Classes
                   import org.papervision3d.scenes.*;
                   import org.papervision3d.cameras.*; 
                   import org.papervision3d.objects.*;
                   import org.papervision3d.objects.primitives.*;
                   import org.papervision3d.materials.*;
                   import org.papervision3d.materials.shadematerials.*;
                   import org.papervision3d.materials.utils.MaterialsList;
                   import org.papervision3d.lights.*;
                   import org.papervision3d.render.*;
                   import org.papervision3d.view.*;
                   import org.papervision3d.events.*;
                   import org.papervision3d.core.*;
                   import org.papervision3d.lights.PointLight3D;
                   import flash.filters.DropShadowFilter;
                         import caurina.transitions.*;
                         private var numOfItems:int = 5;
                         private var radius:Number = 600;
                         private var anglePer:Number = (Math.PI*2) / numOfItems;
                         //private var dsf:DropShadowFilter = new DropShadowFilter(10, 45, 0x000000, 0.3, 6, 6, 1, 3);
                   public var angleX:Number = anglePer;
             public var dest:Number = 1;
                   private var theLight:PointLight3D;
            //Papervision Engine
                   private var viewport:Viewport3D; 
                   private var scene:Scene3D; 
                   private var camera:Camera3D;
                   private var renderer:BasicRenderEngine;
             private var planeArray:Array = new Array();
             [Bindable]
             public var object:Object;
             private var arrayPlane:Object;
             private var p:Plane;
             //Initiation function           
             private function init():void 
             viewport = new Viewport3D(pv3dCanvas.width, pv3dCanvas.height, false, true); 
             pv3dCanvas.rawChildren.addChild(viewport); 
             viewport.buttonMode=true;
             renderer = new BasicRenderEngine();
             scene = new Scene3D(); 
             camera = new Camera3D();
             camera.zoom = 2; 
             createObjects(); 
             addEventListeners();
    //Create Objects function          
              private function createObjects():void{
              for(var i:uint=1; i<=numOfItems; i++)
                        /* var shadow:DropShadowFilter = new DropShadowFilter();
                        shadow.distance = 10;
            shadow.angle = 25; */
                        var bam:BitmapFileMaterial = new BitmapFileMaterial("images/resolv"+i+".jpg");
                        bam.oneSide = false;
                        bam.smooth = true;
            bam.interactive = true;
                        p = new Plane(bam, 220, 200, 2, 2);
                        p.x = Math.cos(i*anglePer) * radius;
                        p.z = Math.sin(i*anglePer) * radius;
                        p.rotationY = (-i*anglePer) * (180/Math.PI) + 270;
                        scene.addChild(p);
                        //p.filters=[shadow];
                        p.extra={pIdent:"in"};
                        p.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
            planeArray[i] = p;
              // create lighting
            theLight = new PointLight3D();
            scene.addChild(theLight);
            theLight.y = pv3dCanvas.height;
              private function toggler(event:InteractiveScene3DEvent):void
                            // if the cube's position is "in", move it out else move it back
                            if (event.target.extra.pIdent == "in")
                                    moveOut(event.target);
                            else
                                   moveBack(event.target);
                    private function moveOut(object:Object):void
                              trace(object +" my object");
                            // for each cube that was not selected, remove the click event listener
                            for each (var arrayPlane:Object in planeArray)
                                    if (arrayPlane != object)
                                            arrayPlane.removeEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
                            //right.enabled=false;
                            //left.enabled=false;
                            // move the selected cube out 1000 and rotate 90 degrees once it has finished moving out
                            Tweener.addTween(object, {scaleX:1.2, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            Tweener.addTween(object, {scaleY:1.2, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            // set the cube's position to "out"
                            object.extra = {pIdent:"out"};
                            // move the camera out 1000 and move it the to same y coordinate as the selected cube
                            //Tweener.addTween(camera, {x:1000, y:object.y, rotationX:0, time:0.5, transition:"easeInOutSine"});
                    private function moveBack(object:Object):void
                            // for each cube that was not selected, add the click event listener back
                            for each (var arrayPlane:Object in planeArray)
                                    if (arrayPlane != object)
                                            arrayPlane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
                            // move the selected cube back to 0 and rotate 90 degrees once it has finished moving back
                            Tweener.addTween(object, {scaleX:1, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            Tweener.addTween(object, {scaleY:1, time:0.5, transition:"easeInOutSine", onComplete:rotateCube, onCompleteParams:[object]});
                            // set the cube's position to "in"
                            object.extra = {pIdent:"in"};
                            // move the camera back to its original position
                            //Tweener.addTween(camera, {x:0, y:1000, rotationX:-30, time:0.5, transition:"easeInOutSine"});
                            //right.enabled=true;
                            //left.enabled=true;
                    private function goBack():void
                            // for each cube that was not selected, add the click event listener back
                            for each (var arrayPlane:Object in planeArray)
                                    if (arrayPlane != object)
                                            arrayPlane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, toggler);
                    private function rotateCube(object:Object):void
                            //object.rotationX = 0;
                            //Tweener.addTween(object, {rotationZ:0, time:0.5, transition:"easeOutSine"});
              private function addEventListeners():void{
        this.addEventListener(Event.ENTER_FRAME, render);
    //Enter Frame Listener function             
    private function render(e:Event):void{ 
                     renderer.renderScene(scene, camera, viewport);
                     camera.x = Math.cos(angleX) * 800;                                                  
                     camera.z = Math.sin(angleX) * 800;
    private function moveRight():void
              dest++;
              Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});
              //goBack();
    private function moveLeft():void
              dest--;
              Tweener.addTween(this, {angleX:dest*anglePer, time:0.5});
              //goBack();
              ]]>
    </mx:Script>
              <mx:Canvas width="1014" height="661">
              <mx:Canvas id="pv3dCanvas" x="503" y="20" width="400" height="204" borderColor="#110101" backgroundColor="#841414" alpha="1.0" backgroundAlpha="0.57"> 
              </mx:Canvas>
              <mx:Button x="804" y="232" label="right" id="right" click="moveRight(),goBack()"/>
              <mx:Button x="582" y="232" label="left"  id="left"  click="moveLeft(),goBack()" />
              </mx:Canvas>
    </mx:Application>

    Your answer may be correct, but I am very much a beginner to actionscript, and I was wondering moreso if it is possible to determine the root/url (i.e. images/resolv2.jpg)? Or even if InteractiveScene3DEvent calls a variable that holds this url? However, specifically, I'm just wondering if the actionscript itself could determine the url in a line of code such as "if object == BitmapFileMaterial("/images/resolv2.jpg"); "? Also, here's a copy of InteractiveScene3DEvent in more detail if you think that will help:
    public class InteractiveScene3DEvent extends Event
                         * Dispatched when a container in the ISM recieves a MouseEvent.CLICK event
                        * @eventType mouseClick
                        public static const OBJECT_CLICK:String = "mouseClick";
                         * Dispatched when a container in the ISM receives an MouseEvent.MOUSE_OVER event
                        * @eventType mouseOver
                        public static const OBJECT_OVER:String = "mouseOver";
                         * Dispatched when a container in the ISM receives an MouseEvent.MOUSE_OUT event
                        * @eventType mouseOut
                        public static const OBJECT_OUT:String = "mouseOut";
                         * Dispatched when a container in the ISM receives a MouseEvent.MOUSE_MOVE event
                        * @eventType mouseMove
                        public static const OBJECT_MOVE:String = "mouseMove";
                         * Dispatched when a container in the ISM receives a MouseEvent.MOUSE_PRESS event
                        * @eventType mousePress
                        public static const OBJECT_PRESS:String = "mousePress";
                         * Dispatched when a container in the ISM receives a MouseEvent.MOUSE_RELEASE event
                        * @eventType mouseRelease
                        public static const OBJECT_RELEASE:String = "mouseRelease";
                         * Dispatched when the main container of the ISM is clicked
                        * @eventType mouseReleaseOutside
                        public static const OBJECT_RELEASE_OUTSIDE:String = "mouseReleaseOutside";
                         * Dispatched when a container is created in the ISM for drawing and mouse interaction purposes
                        * @eventType objectAdded
                        public static const OBJECT_ADDED:String = "objectAdded";
                        public var displayObject3D                                        :DisplayObject3D = null;
                        public var sprite                                                            :Sprite = null;
                        public var face3d                                                            :Triangle3D = null;
                        public var x                                                                      :Number = 0;
                        public var y                                                                      :Number = 0;
                        public var renderHitData:RenderHitData;
                        public function InteractiveScene3DEvent(type:String, container3d:DisplayObject3D=null, sprite:Sprite=null, face3d:Triangle3D=null,x:Number=0, y:Number=0, renderhitData:RenderHitData = null, bubbles:Boolean=false, cancelable:Boolean=false)
                                  super(type, bubbles, cancelable);
                                  this.displayObject3D = container3d;
                                  this.sprite = sprite;
                                  this.face3d = face3d;
                                  this.x = x;
                                  this.y = y;
                                  this.renderHitData = renderhitData;
    Thank you so much!

  • How can I save my images like a "wedding photographer" does?

    I have a Pixma PRO-100. . . with a Windows 8.1 PC. . . and printing through Adobe Photoshop Elements 11.
    I just printed some wedding pictures of my daughter - which I got from the "wedding photographer"... when I printed them - they were an exact match to what I saw on my screen (which I've calibrated)... and dead on crisp, great quality.
    I'm wondering what a wedding photographer does to their images to make them so "solid" in printing.  How do they save them?
    when I print something from a my files, (Raw, NEF, or JPEG's) - there always seems to be a color or quality problem? Never a match.  It takes several adjustments and print samples before I get what I want. 
    Is the ICC Profile a problem - or How can I save my images like a wedding photog does?  So they print exact?
    Joe B

    " ... (Raw, NEF, or JPEG's) ... "
    I suspect there are some minor differences you are not seeing and/or noticing on screen.  But right off, no real wedding photographer will shoot in anything except RAW.  You should be using RAW, only, too.  The RAW file to start with has way more info in it than any jpeg does.
    Next I would bet your wedding photographer does some tweaking to highlights and shadows, plus s ome other stuff that you are not.  In other words he is getting the photos ready for printing. Remember printing on paper and "printing for on screen" is two different things.
    EOS 1Ds Mk III, EOS 1D Mk IV, EF 50mm f1.2 L, EF 24-70mm f2.8 L,
    EF 85mm f1.2 L II USM, EF 70-200mm f2.8 L IS II,
    Sigma 120-300mm f2.8 EX APO, Photoshop CS6, ACR 9, Lightroom 6

  • How to display every other images in image indicator

    Hi All,
    I am using IMAQ to grab and save high freq and high resolution images. I have an image indicator directly from "Image Grab Acquire". So, the image indicator is displaying every single images at a very high frequency too. We have to display frames, but not necessarily every single one (enough so the operator can see what's going on). So, I am wondering how I can display, say every other images (such as all odd/even number of images), or jump over two and display the third?
    Any help will be appreciated!
    Thanks!
    Wenlong
    Solved!
    Go to Solution.

    Here are some general comments.
    Image acquisition is "a horse of a different color" -- unlike many other I/O devices, the memory that holds the data (here called the "buffer") is managed by the driver, and isn't directly available to LabVIEW.
    I'm guessing that you are using NI Video hardware, as you are using IMAQ functions (I've only used IMAQdx).  Is this true?  What camera are you using?
    The IMAQ Extract Buffer (probably) "clocks" itself to the camera (I say "probably" because I don't know the hardware you are using).  This means that the While loop containing it will run at the frame rate of the camera (hence you can easily calculate the frame rate, as your code shows).
    This looks like an NI Demo routine, so I'm guessing that you don't have a lot of experience with Vision processing.  If you've got a lot of other LabVIEW experience, you should be able to make the leap to vision, once you get the idea of how buffers work.  Unfortunately, there's not as much in the way of tutorials and white papers on Vision as on other LabVIEW topics.
    So to your question -- how to display every Nth image.  Here's the key loop (which is lifted directly from your code):
    As menioned above, this routine is "clocked" by the Extract Buffer function.  What you do to display every N'th image is to put the Image control inside something like a Case statement that "fires" every Nth time.  
    Here's an "Nth" version of the above loop (some details omitted) --
    We still drive the loop filling every buffer with a frame.  But we then use the Integer Divide function to select the Nth image (those that have a remainder of 0 when i is divided by Nth) and wire the "image" line (it doesn't really hold an image) to the "Image" control, with the other case being "Default" (so all other valeus go there) and with nothing inside.  Thus every Nth time through this loop, the output of Extract Buffer is wire to an Image (and displayed), the other N-1 times the wire goes nowhere.
    Bob Schor

Maybe you are looking for

  • After starting iTunes 11, I get a blue screen error

    So after I updated my iTunes to v11, it started up and it was great! Then I rebooted my PC. After logging in, I started iTunes 11. Nothing happened for a few minutes. Then the screen became black for half a minute or so and then I get the blue screen

  • Audio oddities on MacBook after sleep

    Here's the deal: I had 4 tracks of dialog I was working on for an animated movie. Each track had different fx settings. After doing some editing and such I saved the project, and put the MacBook to sleep to go on to something else. When I returned la

  • How to create an email group

    Got an iPad 2 & I am having a hard time trying to set up an email group. Help! And thx!!

  • Footage fades a little bit half way through interview, how do I fix?

    Greetings! I'm working on a Doc that has interviews with Celebrities, one of the interviews is with Linda Evans and about half way through the interview the lighting fades a little bit. It's just a gradual fade, happens over 10-15 frames, but it wasn

  • Linux error 113

    on vmware , we have z box call rman.blobin.biz I have installed RMNDB on it on port 1571 . listener is also running on this. I am able to do sqlplus rman/rman@RMNDB. rman.blobin.biz tnsnames.ora for this DB has following entries. RMNDB = (DESCRIPTION