Rendering an image and adding points

Hi,
I need some high level guidance as to how add points (as plotting points) to an image. These points (x, y coordinates) will be retrieved from an existing database and plotted on top of an image. I extended a jpanel and overwrote the paint method to paint the image. I was looking for something similar for the points but haven't found anything obvious. The closest thing is paintPolygon() method, but this paints a close shape and all I need is to paint the points. Any help will be much appreciated.
-thanks
R

Hi, thank you for getting back so quick!
1. its a jpeg file i downloaded from Shutterstock for use on my website. I also have a vector format of the file but i guess for the web i need jpeg.
2. You can actually see the image here,Gift Cards With Different Red Bows Stock Vector Illustration 119754361 : Shutterstock
3. I can't make the outline mode work
4. The whole image gets selected.
am super grateful! Thank you

Similar Messages

  • As3IsoLib: Loading Image and Adding to Sprite.

    I'm using a library called 'As3IsoLib' in my isometric game to create sprites and other elements. Currently I add a sprite and load an image to be displayed for the sprite. Up until now I have not checked to see when the image has actually loaded as I just straight away add it. That's got me thus far but now I'm expericening 'security' errors in flash which apparently mean it's trying to add an image which hasn't yet fully loaded.
    Since I was going to be loading lots of images I put such under a function entitled 'LoadImg'. This is passed a string that is the location of the image we wish to load.
    var UnitSprite:IsoSprite;
    UnitSprite.moveTo(0, 0, 0);
    UnitSprite.sprites=[LoadImg('imgs/picture.png')];
    DrawSprite(UnitSprite);
    function LoadImg(Img:String):Loader
         var myLoader:Loader;
         myLoader=new Loader();
         myLoader.load(new URLRequest(Img));
         return myLoader;
    But now I need to say when it's completed loading the image then return the loader which isn't possible. I can't add an event handler saying when the 'myLoader' has completed because then you have to supply a second function rendering me unable to use return. I also cannot pass it the sprite I wish to add the image to. I've read in AS2 you were able to pass additional arguments. Such would solve my problem via something along the lines of...
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, AddImg(SpriteToAddImgTo));
    function AddImg(e:Event,Spr:IsoSprite)
        Spr.sprites = [e.target];
    But I'm using AS3 so I cannot do such. I've read several times on the Internet that it is possible to pass addional arguments ( see http://sinfinity.pl/blog/2012/03/28/adding-parameters-to-event-listener-in-flex-air-as3/ )
    but I cannot get it to work. How might I achieve this?

    that may (or may not) be caused by trying to use the loader's content before loading is complete.  to remedy the problem, if it's caused by trying to use the loader's content before loading is complete use:
    var UnitSprite:IsoSprite;
    UnitSprite.moveTo(0, 0, 0);
         var myLoader:Loader;
    LoadImg('imgs/picture.png');
    function LoadImg(Img:String):void
    myLoader=new Loader();
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, AddImg);   
    myLoader.load(new URLRequest(Img));
    function AddImg(e:Event)
    Spr.sprites = [e.target];
    UnitSprite.sprites=Bitmap(myLoader.content); 
    DrawSprite(UnitSprite); }

  • Why is LR importing duplicate files and adding a -1 to file name?

    I need to locate some missing photos that disappeared from my library so I'm re-importing my photo collection again (from burnt DVD's) in hopes to recover all the missing images. When I insert a DVD to re-import the photo collection and choose "convert to DNG" and I check "do not import suspected duplicates" LR imports the same images that are already in the catalog and renames the images with a -1...for example, IMG_3664.dng is already in LR folder named 2008-06-14. When I re-import the images from that date, LR renames the image IMG_3664-1.dng and puts it in the same folder resulting in duplicate images side by side. Why is it importing the same image and adding a -1 to the file name?
    I was expecting it to tell me there are XXX photos already in the catalog but it doesn't. It just adds a -1 to the file name and imports all the duplicate images and displays them side by side in the grid view.
    Any ideas? I originally imported the images from the same DVD's I'm using now on a PC and placed the library on an external hard drive. NOw I'm using a new iMAC and I imported that same library from the same external drive location. I'm working with LR 1.31.
    Can someone help? LR should recognize the files with the identical date/time stamp and tell me it's already in the catalog...but it's not for some reason.
    Thanks

    If you import them again, you'll get a "-2" instead of -1, and the -2 will list with the -1,and the original with no dash. The higher number distinguishes the most recent file of same title..
    The file titles are identical as original, but it sounds as converting the file from the source,(PC, Hard drive) to DNG makes it another version of the file....do you type DNG in caps? should it be lower case?
    Because the computer doesn't read the file as a duplicate, but the file name is the same, you'll get a -1.
    This could probably happen,say, if your files are raw, and you had burned them as jpeg onto dvd storage. Even though you want them back as raw, converting them isn't duplicating them.
    I hope this helps...I don't even own Lightroom; I'm shopping around between this and Aperture right now...the experience I'm referring to is where I work in a pre-press printing house; So if someone replying to my post who masters in Lightroom calls me an idiot, I won't argue much!!

  • My mac Mini has problem rendering images and video

    THE PROBLEM:
    My mac mini has problem rendering JPEG image. There are strips on the images. Other images such as GIF, PNG, TIFF, and BMP are displayed nicely.
    The images shown in the links below illustrate the problem:
    http://www.flickr.com/photos/terencewong/71481156/
    http://www.flickr.com/photos/terencewong/73360989/
    (Please note that this image is grabbed from my faulty Mac Mini and saved into TIFF. For uploading purpose, I converted it into JPEG on ANOTHER computer.)
    For movies, AVI can be playback without problem. But when it is converted to MPEG, it looks like an untunned TV channel.
    FIXES TRIED:
    I did erase and install 3 to 4 times using both the install disc and my Tiger Family Pack. All ended up with strips on the JPEG images and the generated MPEG movies.
    I've also tried to flash the firmware to 113-xxxxx-124 using ATI's october 2005 universal ROM update, however, the ROM Revision shown in System Profiler is still 113-xxxxx-116 no matter how many time I reboot the system.
    INVESTIGATION:
    Yesterday, I did some research and got to know that JPEG and MPEG are using DCT (Discrete Cosine Transform) for decompression. And the ATI Radeon 9200 chip provide such a transform on hardware basis, which free the CPU from doing something else. Feel free to point out my inaccuracy.
    HARDWARE SPECIFICATION:
    I bought the Mac Mini in the last Februray.
    The system Boot ROM version is: 4.8.9f1
    Display card is ATI Radeon 9200
    Chipset Model: ATY,RV280
    Revision ID: 0x0001
    ROM Revision: 113-xxxxx-116
    A POSSIBLE CONCLUSION:
    I suspect that it is this part of the chip (the DCT) that is faulty.
    Anyone know how to fix this problem?
    Many thanks!

    Assuming that your display is tightly connected, thus the problem is not caused by something as simple as that, the fact that a full erase and install has not removed the problem would, I think, point to this being a hardware issue, and given that everyone's mini (with the possible exception of some of the latest ones) has the same video chipset as yours, and do not suffer the problem that you appear to, it seems very likely that your mini has a fault which is in need of repair.
    If you have an Apple Store nearby, I would take it there to have it checked out - at the very least they should be able to replicate your problem using an in-store display, and if not, thusly suggest it's something external to the mini and concerning your display or something very unusual in the immediate environment of the mini. If you don't have an Apple Store in reach, I'd take the system to an Apple authorized service provider since at the present time it is under warranty.

  • I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    What Happened?
    No way for us to know.  But if your system was crashing, there definitely was a problem.  The FCE error message you got normally indicates the FCE project file has been corrupted.  This probably happened due to whatever caused your system to crash & shutting down the system.
    First, make sure your system is running correctly.  Then, use the Finder to navigate to /users/yourusername/Documents/Final Cut Express Documents/Autosave Vault and find the most recent backup copy of your FCE project file.  Copy the file to your Final Cut Express Documents folder (copy the file, don't just move it).  Then double-click the copy to open it in FCE.  It should open ok, but will probably not have your most recent edits (transitions).  You may have to rebuild the transitions, but at least you will be back in action.

  • The images imported to my stage turn up as blank and render every image previous to the rogue imported image as red squares that fill the perimeters of the image which then renders the publishing and scene testing features in flash useless, what can i do

    I have been working on animating a scene in flash for a few weeks and recently I have encountered a problem with importing my images on to the stage where the images I import do not turn up, however the key frame that I attempted to import the image onto shows that it is occupied by an image and every frame previous to the key frame that just imported an image that does not show turns up as a red square that fills the original perimeters of the image, there is no solution to this problem any where on the forum and the adobe technical support staff will not help me find a solution to this problem what can I do to get Flash running normally again and fix this problem?????
    Also after the first time i publish a preview after i begin using flash, flash renders the publishing and scene testing features as useless and claims that there is no HTML template found, or if the images if i import any images onto the stage that come up blank and render every image previous to that image as a red square and then try and publish a preview  flash renders the publishing and scene testing features as useless and claims that there is no HTML template found. What can I do to fix this problem??? there is no solution on the web anywhere to this problem either.

    I don't know if Flash has a memory limit of its own. The memory for your Flash file is based on the available memory on your computer.
    There is a limit on the number of frames that you can have in any given timeline. I think that it's about 15000 frames, but that's a guess. Flash does all of its work at runtime, this means that no part of your animation is pre-compiled like it is in a video file. So the more objects that you have on the stage, the more work Flash has to do. It follows that the more objects that there are to animate, the more work your processor and the video card have to do.
    Here's a list of articles on memory management that might be useful:
    Garbage collection internals for Flash Player and Adobe AIR | AdobeDeveloper Connection
    actionscript 3 - What are good memory management techniques in Flash/as3 - Stack Overflow
    AS3 Memory Management Tips

  • Just bought a 2tb external hard drive with the intention of moving my iPhoto data files on it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app? Do I need to point iPhoto to this new location?

    Just bought a 2tb external hard drive with the intention of moving my iPhoto data files to it. I have so much of my 500 gigs being used up by images and video. Questions: Will this foul up my iPhoto app?
    Do I need to point iPhoto to this new location?
    Thanks!

    Are you running a Managed or a Referenced Library?
    A Managed Library, is the default setting, and iPhoto copies files into the iPhoto Library when Importing. The files are then stored in the Library package
    A Referenced Library is when iPhoto is NOT copying the files into the iPhoto Library when importing because you made a change at iPhoto -> Preferences -> Advanced. (You unchecked the option to copy files into the Library on import) The files are then stored where ever you put them and not in the Library package. In this scenario you are responsible for the File Management.
    Assuming a Managed Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Every time I right click on an image and select Download image Firefox crashes . I have reinstalled; uninstalled and deleted folders and then reinstalled; added

    Every time I right click on an image and select Download image Firefox crashes . I have reinstalled; uninstalled and deleted folders and then reinstalled; added no plugins; checked I can DL the same images in IE-works good.I use Win7 pro and it works in other profiles in Windows 7. I created a new profile in Windows and that worked for about 2 months and now that has gone the same way as my admin profile has done. I deleted the sqlite download file-still same prob..Please help. I use Firefox 13.0.1

    That sounds very frustrating.
    By the way, does it say "Download image" or "Save Image As"? Just checking whether you have an add-on downloader in the mix that might be relevant. If you do have an add-on, try using the built-in command.
    Do you also crash if you save from here:
    right-click page > View Page Info > Media tab > (select image) > Save As
    I assume you have seen this article and tried these things: [[What to do if you can't download or save files]].
    Have you tried the new Reset feature in Firefox 13? This duplicates certain key data from your active settings folder into a new one, bypassing some add-ons and custom settings. Your plugins will still be active, but could be disabled manually if you like.
    More information in this article: [[Reset Firefox – easily fix most problems]].
    If the new settings folder has the same problem, you can switch back if you like using Firefox's Profile Manager.
    Does it make any difference?

  • Adding images and buttons without a frame appearing

    I would like to add images to some of my pages without having them appear in a frame. I would like to place some transparent gifs on the page to use as buttons for hyperlinks. I would also like to have some photos (with transparent backgrounds that appear on the page and are not surrounded by a picture frame. Any Suggestions

    iWeb seems to default to stroking newly-added images and shapes. Pages (iWeb's close relation) includes a way to change the default appearance, but I can't find anything similar in iWeb. You can, of course, remove the stroke using the Graphic Inspector (just set Stroke to None). Transparency in gifs and photo images is supported. Just drag into iWeb or use Insert > Choose... Again, remove the stroke if this appears.

  • Recovery and Black Point on JPEG images

    I'm not a big fan of trying to do much editing on JPEG images aside from non-exposure/white balance type stuff. I'll crop and straighten, etc.
    My question pertains to (for those in the know) applying slight Recovery and Black Point correction to images that aren't shot in RAW format. A) will applying these slight changes having any effect (hopefully a positive one) on the images? B) if not, will it indeed have a negative effect?
    Thanks for your time and expertise.
    Mac

    Jim,
    Thanks for chiming in on a topic where I didn't expect to get many replies. All of your comments are well appreciated. I was basically asking because I was under the impression that unless your master is in RAW format, making adjustments to exposure, contrast and even recovery and black point would not do much and could even be detrimental to things such as skin tone, etc. I like to shoot in RAW for the reason of being able to have more fine control to adjustments, but for everyday shots and portraits I don't always go to RAW format since a lot of the time I have trouble getting the shot right with the manual controls. I also don't want the large RAW files for every shot that I take. Still, a lot of JPEG's need adjustments, even if just minor tweaks. The tweaks I make look fine on the screen, but I wasn't sure if they would look okay when printed out and I didn't want to spend countless hours making adjustments and spend (waste) money on prints that weren't going to come out good.
    Anyway, that is the background to my thinking in making this post. Thanks again for chiming in.
    Mac

  • My Iphone 4 will not turn on all it will do is show the iTunes logo and and arrow point to it with an image of the connector to power cord. Ive tried to turn it off, taken out sim but nothing

    My Iphone 4 will not turn on all it will do is show the iTunes logo and and arrow point to it with an image of the connector to power cord. Ive tried to turn it off, taken out sim but nothing

    Hello there, FrancesCech.
    The following iPhone Troubleshooting Assistant should help with what to do with your situation:
    Apple - Support - iPhone - Restore Troubleshooting Assistant
    http://www.apple.com/support/iphone/assistant/restore/
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • I'm trying to retouch an image and I keep getting a message "you must option-click on the image to define a source point"  I ca't seem to get anything to work.  What is option-click?

    I'm trying to retouch an image and I keep getting a message "you must option-click on the image to define a source point"  I ca't seem to get anything to work.  What is option-click?

    leonieDF wrote:
    but always with the  (⌥) sign.
    Not always true. I have the wireless keyboard and the symbol is not on it (just looked at an old Apple wireless keyboard andit to doesn't have the symbol on it).

  • Adding a photo/still image to start of movie freezes on that image and doesn't transition to rest of movie

    I have basically completed my movie with images, audio clips and background audio.  I want to add one more still image to the start of the movie but when I do that and try to play my movie, it freezes on that one image I just added (yet continues to play the audio for the rest of the movie).  I took my problem to the Apple store today and they had no clue how to fix (said it must be a bug) and just suggested I export the movie then import it again into a new movie.  But when I do that I lose the quality of the images considerably.  I am 99% done with the movie and just need this title image inserted in. 
    Any ideas why this might be happening or how to resolve without re-building the entire movie again?

    Some things to try.
    1) shut down iMovie and turn off your Mac. Then restart your Mac and start iMovie. This will give iMovie the maximum amount of memory available.
    2) Have you tried sharing the movie? Does the problem exist in the shared version?
    3) What kind of image and what are the dimensions? e.g. JPEG 4000x6000

  • Adding New Image and Text to an Existing Page Created with Tables

    Working in DW 5.5
    I'm trying to add a new image/link and small amount of text to an existing web page that was created with tables and centered.  I am using AP Divs. One for the image and one for the text.  Everything functions fine, but I can't get the new items to anchor and re-center with the rest of the page.  I am not able to overide the "Absolute Positioning".  I've tried different solutions from various tutorials but I can't seem to make them work with tables.
    The added items are a Facebook button and text.
    Go to:  http://www.sugarhollowfarms.net/index.html  to see the problem.
    Please help. I'm not that experienced.

    Make a back-up of the page first before you implement the changes below!
    Take the below bit of code from <div id="FBlogo">...... to.......... </div> <!-- end FBlogo -->
    and insert it directly after the opening div tag FWTableContainer and before your opening table tag (see position below):
    <div id="FWTableContainer209091602">
    <div id="FBlogo"><a href="#"><img src="images/fb.png" alt="fb" width="62" height="62" onClick="MM_openBrWindow('http://www.facebook.com/SugarHollowFarms','facebook','toolbar=yes,location=yes,status=yes, menubar=yes,scrollbars=yes,resizable=yes,width=1000,height=800')"></a>
    <p class="bodytext"><strong>Join us<br>
    on Facebook</strong></p></div><!-- end FBlogo -->
    <table border="0" cellpadding="0" cellspacing="0" width="800">
    Then add - position: relative; - to the FWTableContainer css (as shown below):
    #FWTableContainer209091602 {
        /* The master div to make sure that our popup menus get aligned correctly.  Be careful when playing with this one. */
        position:relative;
        margin:auto;
        width:800px;
        height:600px;
        text-align:left;
        top: 20px;
        background-image: url(images/homepage_new3.jpg);
        border: medium solid #336600;
        position: relative;
    Amend the css for FBlogo to as below:
    #FBlogo {
        position:absolute;
        left:700px;
        top:380px;
        width:91px;
        z-index:1;
        text-align: center;
    Amend the css for bodytext as below:
    .bodytext {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
        line-height: 13px;
        margin: 0;
        padding: 0;

  • [svn:osmf:] 11238: Cue point sample improvements and added a work around for FM-171 to the TemporalFacet class .

    Revision: 11238
    Author:   [email protected]
    Date:     2009-10-28 12:45:35 -0700 (Wed, 28 Oct 2009)
    Log Message:
    Cue point sample improvements and added a work around for FM-171 to the TemporalFacet class.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-171
    Modified Paths:
        osmf/trunk/apps/samples/framework/CuePointSample/src/CuePointSample.mxml
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.as

    Revision: 11238
    Author:   [email protected]
    Date:     2009-10-28 12:45:35 -0700 (Wed, 28 Oct 2009)
    Log Message:
    Cue point sample improvements and added a work around for FM-171 to the TemporalFacet class.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-171
    Modified Paths:
        osmf/trunk/apps/samples/framework/CuePointSample/src/CuePointSample.mxml
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.as

Maybe you are looking for

  • Error while invoking bpel through java

    when i was using java to invoke iam getting an exception com.oracle.bpel.client.ServerException: IDeliveryService.request() invoked for one-way operation 'initiate'. This method can only be used to invoke two-way operations which return an output mes

  • Upgrading from iPhone 3 to a used iPhone 3GS

    Hi, I just got the iPhone 4, and would like to give my old iPhone 3GS to my father, who uses an iPhone 3. Is this as simple as: -wiping all my data off -switching the SIM card -sync with my father's itunes I know that the complete phone wipe puts the

  • Generating pdf from scanner

    generating pdf from scanner hp G3010: old windows xp file weight 40-50 K. Macbook pro with new mac os 10.7.2 minimum file weight 1,9 Mbyte with terrible resolution!!!! and no way to reduce. Nice change?

  • What is better to install in a new system?

    I am new in ORACLE and I want to install oracle in a computer. What is best to install: ORACLE 9i or ORACLE 10g database. What OS is better: WINDOWS, SOLARIS OR LINUX. Thanks for you help.

  • Pdf wont open in IE9 with Reader 10.1.5 the 2nde time

    Hi, I get an error 000:105 when i try to open the same pdf again within the brower. i read it can be a bug in 10.1.5 and other 9 and 11 versions but is there already a workaround for this issue and is this issue still present in version 10.1.6 and hi