Paint program : exporting image data ?

i have a simple paint program that allows me to draw by freehand.
If i have 2 canvas, and i draw on one, how would i update the other one in real time ?
i want to create a multiplayer game based on Pictionary (guess the drawing, like charades). So I i need to know the best way to extract the screen information of the drawing from one canvas and import it into another one.
My paint program consists of JPanel MouseListener to draw.
Thanks

also im using code similar to the paint program used here
http://forum.java.sun.com/thread.jspa?threadID=571193&messageID=2827280
but one problem... if i resize, minimize or load a window on top of it, the painted image disappears, what do i need to modify to redraw it ?
thanks

Similar Messages

  • Can I use Bridge to export image data into a .txt file?

    I have a folder of images and I would like to export the File Name, Resolution, Dimensions and Color Mode for each file into one text file. Can I use Bridge to export image data into a .txt file?

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • How to export image data into XDP

    Hi, All
      I'm working on a healthcare project that needs to export the doctor's signature image into XDP file from the database to fill in the Insurance company claim form. My question is how to export image data into a field node in the XDP file, we know the name of the image field which defined in the PDF form, Is it something like:
      the signature image data ?
    Should the image data in this node be base64 encoded or text encoded or something else?
    Can the image be any kind? e.g. BMP, PNG, JPEG, ..., etc?
    Thanks
    William

    Hi Andre,
    Document will be of ASCII characters right?? but image data will be in binary format. as per database concept it is stored as binary large object. But in datawarehousing the back end is also going to be some database such as Oracle or other DBs.
    which can take blob's. so it would be possible to store the binary data.
    If any one has faced this situation can reply.to this ques.
    can post the step to load image(jpg/bmp or any image format) data in to info cube??
    hi andre if u have done loading image data as you say.pls reply me if you have the steps with you.
    thanks Andre

  • If exporting images for backup, to reimport into a clean aperture or other program, is it best to use 72 dpi or 300 dpi, or does it matter?

    If exporting images for backup, to reimport into a clean aperture or other program, is it better to use 72 dpi or 300 dpi, or does it matter?  I want the best quality for any future unforeseen use. 

    I am somewhat reluctant to answer your questions after Frank Caggiano's excellent advice, but I really do not like to leave the question open, for there will be many occasions when you will need to export images and to understand how it works.
    But please, follow Frank's advice, right now you do not need to worry about pixels and dpi. That is exactly what I meant, when I suggested to you to make sure you keep a copy of your Aperture Library and to back it up with all your other data, before you erase your disk for a clean reinstall.
    DPI revisited:
    So, is the dpi setting only for exporting to print?
    The dpi settings are necessary to define the size of a digital image, since pixels don't have any dimensions. And since you cannot print or display an image without knowing its width and height, you will need to specify dpi when you are printing or scanning.
    If I leave it at the default 72dpi will there be any problems getting quality prints in the future from jpeg versions exported with that setting?
    Not if you export with the original size - the maximum number of pixels available. That will ensure the maximum print quality.
    The dpi settings are required to export versions; versions are derived from the masters and new image files are computed. When you export masters you get a copy of the original file that already may have a dpi setting.
    If I choose "export masters", will aperture will export my masters just as they are? 
    yes, and  you may add IPICT data if you choose
    Pardon my thick skull--I'm an old dog trying to learn new tricks in this digital world!
    No apologies necessary, we were all beginners once
    Here is another example, maybe that helps a little:
    I exported an image (jpeg) with three different setting: export masters, a version with 72dpi, a version with 300dpi and inspected the files in Graphic Converter:
    The master was exported like this:
    Notice, the master had already dpi settings, although I did not specify any on export.
    The size is 51,48 cm x 38,61 cm.
    The 72 dpi Version has larger dimensions, but also 10 Megapixels.
    and here the 300 dpi version: smaller dimensions, same amount of pixels.

  • RAW image date not exporting

    Hi there
    Currently I shoot everything as JPG, but would like to start using RAW on my Canon 300D. I have done a few trials, and find one thing perplexing – if I shoot in RAW the image date shows up in Aperture. When I export and add the exported JPG to my iView catalog, no Capture Date (image date equivalent) shows up. When I do the exact same steps after shooting in JPG, the Capture Date appears without any problem.
    Is there a way to have the image date added to the metadata of the exported image?
    Hannes

    I'm not sure about this but the problem may be that there are different "flavors" of EXIF data. I believe there's a basic set of data that all camera manufactures have agreed to and then there's custom EXIF data specific to a camera, lens, strobe, or manufacturer.
    It may be that Apple has chosen to only support the generic flavor(s) of data while ignoring the custom ones. I think that's why cell phone syncing with Address Book only gets some data to the phone. Pictures, groups, and the like are probably different for every phone and Apple decided not to support it. But I don't know that with certainty.
    If you want to see what data is actually in the original and the exported files download a free copy of ExifTool by Phil Harvey from http://www.sno.phy.queensu.ca/~phil/exiftool/
    It's a great tool and shows me more data for my Cannon camera's images than Canon's own software does.
    MacBook Pro 17" (with crappy screen)   Mac OS X (10.4.8)  

  • Since update to 10.6.8 can't export images from powerpoint and also other programs

    Ever since I updated my software to 10.6.8 I can't export images from Powerpoint or from a graphing software GraphPad Prism.  It's really frustrating.  I had no problems at all until this update. Is there any way to revert my version to the old OS 10.6?
    I can't work when I can't put images into illustrator!
    Thanks, AOH

    I just contacted Final Draft and they helped me with it. If you have FD and are going to upgrade an OS, Deactivate Final Draft first then re-activate it once the new OS is installed.

  • How to export meta-data (keywords, GPS) to original master?

    Dear all,
    When I want to export metadata (keywords, gps, location) back into the original files (just like my ID3-MP3 tags), I simply do not know how.
    I can change the date the picture was taken and write it into the original master, but I seem not to be able to do so with keywords or location. When checking the files, they are unchanged, the metadata is empty and I cannot extract the information in other programs either (Adobe Bridge shows nothing, e.g.)
    There's the menu "write IPTC-Data in original" (Sorry, I don't know the English title here) - but this one does not seem to do anything at all.
    Maybe there's a script out there?
    This is really driving me crazy and the handbook leaves me lost.
    Any Aperture-power-users out there?
    Best and thanks,
    Alex.

    I'm having exactly the same problem, that I can't write the GPS information into my master image files. If I assign location info using Places and then do a 'Update from Master', all my location info is gone I am using Maperture Pro (a freeware plug-in) now to store the location info into my masters. If you export versions then the location info assigned from Places is stored into the exported image files, but I think there is no way to store it into the master image files.
    Make sure that you have 'Include location info in exported photos' enabled in Preferences -> 'Export'.
    As for keywords: This works for me, I can store keywords in my (referenced) master images.
    Message was edited by: Michael Hobi

  • Adobe Flash CS4 export image default format and dialogue default option

    Dear Adobe users and programmers,
    I  would like to ask You whether there's a way where I can set default  format of exported image from Adobe Flash CS4. Here's image describing  what I mean:
    And than I want to have default dialogue window set to "Yes" except "No" in rewriting old data:
    Is it possible to set it in program, or override in registers somehow?
    Regards
    Bryan

    Thank You for navigating me, please delete my topic, some administrator, or moderator. I already set it in the proprietary part...

  • Image Date conventions for scans/copies?

    Hello Aperturers;
    Just searched for a few keywords without success. What I'm about to do is digitally photograph and scan old photo prints/news clips/negatives/slides for use in Aperture.
    Some of the images don't have a date or a specific one. Say, an old family photo might not be marked at all, or only with a year, or one could guesstimate based on apparent ages of people in the photo.
    I'd like as much as possible to have these digitized files line up in sequential order, and am wondering what techniques folks use to assign image dates, either changing EXIF in Aperture or adding IPTC fields.
    For instance, if I decide an unmarked photo is from 1925, what month/date to use, or will Aperture accept blank month/date? If an image is from a known month/year, then what date?
    Do veterans of this kind of work have a standardized date convention? ie if only the year is known or estimated, is Jan 1 or Dec 31 used? If only month is known, is the 15th used as the date, etc?
    Thanks for the help,
    dave.

    My scanner produced files without exif data, and while Aperture will change exif data, it won't add it to files that do not have it.
    I also wanted my scanned slides and negatives to sort by image date like the digital files.
    There is an excellent donationware program for the mac called SetExifData (www.marc.vos.net). Use this program before importing the files into Aperture to assign image dates. It works well on batches.
    My work flow was as follows: import a bunch of old scanned negatives of a tripor event into a project in Aperture. Use aperture to put them in the right order and then to rename the files with some incrementing naming scheme. Export the project to a folder. The Finder can now keep them in proper order because of the filename change. Use SetExifData to create the exif data and set the capture date to some arbitrarily increasing time/date so they will sort properly by image date. Then Import back into Aperture. They now get treated just like a file from a digital camera.
    I've done this with thousands of old slides and negatives and once done it makes life a lot simpler.

  • How can I get the image data from Clipboard with LV

    Anybody knows How can get the image data after pressd "print screen button" with LV?
    I want to program a software which can save a image as a bmp or jpeg etc, and the image data is from pressed print screen button. 
    How to get it out from clipboard. I am trapping about. thanks in advance.
    Try to make everything Automatic

    You can have a look at Rolf Kalbermatter's post here (give him stars) or, if you're using scripting, you can use the Application class Get Clipboard Image method.
    Try to take over the world!

  • What is the fastest way to record and write image data?

    Hello,
    I am new to labview and am using the IMAQ software package to record and write data from a CCD camera to the hard drive. The end goal is a program that records and saves as much data as possible as quickly as possible, for experiments lasting on the scale of days. I have been experimenting with the snap, grab, and sequence methods of recording. To save the image data I was told by NI customer support that TDMS streaming would be the fastest method. I have also been experimenting with the TDMS VIs, however I have found the IMAQ Write File 2 VI to be faster in practice. Am I doing something wrong with the TDMS file structure? Is there a more efficient way to convert IMAQ image data to a dataform that can be written as TDMS? I am posting two of my programs to provide a clearer example of what I am trying to do. The first takes a snap of the image and appends it to a TDMS file. The second is the fastest I have found so far and uses Grab to record the images and the IMAQ Write File VI to save them. 
    Thanks
    Attachments:
    Camera Capture (Snap) and stream TDMS.vi ‏24 KB
    Camera Capture (Grab) and write image.vi ‏24 KB

    Hi
    For me it is no surprise that the second VI is faster then the first one, the reason is you can not compare this two VI with each other.
    In the first VI you work with TDMS files, in the second with png files. That would be much faster, because TDMS files need a lot of diskspace.
    Second point, why do you open, write and close for eacht iteration of the for loop a TDMS file in your first VI? That need really a lot of resources, so it coudn´t be fats as well.
    Save your converted pictures in one array, an after the acquisition you can save it in one TDMS file. When you need for each picture a TDMS file you have to know that this need some time to do this.
    So now for the architecture of your first VI, please look to the LL Sequence.vifrom the examples (C:\Program Files\National Instruments\LabVIEW 8.6\examples\IMAQ\IMAQ Low Level.llb\LL Sequence.vi), there you can see how an acquisition of a number of images have been to do.
    When you like it really fast, you make a producer/consumer architecture (see examples in LabVIEW for that).
    So in the first whileloop you acquire the images, write into a queue and in the second, parallel whileloop you read the queue and save the images. (see attachment)
    Hope that helps
    Kind regards
    Beat
    NI Germany
    Attachments:
    ProducerConsumerData.vi ‏10 KB
    ProducerConsumerData_LV8.5.vi ‏12 KB

  • How do I load a picture from the clipboard (either Windows clipboard or Labview clipboard) into image data that can then be processed in Labview?

    I want to load a picture from the Windows clipboard (and if not possible, then from the Labview clipboard) into actual numerical image data so that it can be processed in lab view. When I'm at the main screen where I can add controls, I see a section of controls called "Vision" in the tool bar where all the different controls can can be added from. When I go to the control called "Image" and put that on my form, and then look at the flowchart/blockdiagram programing window to see what inputs and outputs it has, I only see one output, and no inputs. And when I right click on it, I see NO way to load an image into the Image control. PLEASE help me.
    Message Edited by Ben321 on 11-09-2008 04:32 PM

    Hi Ben,
    National Instruments has an image processing software called Vision and although I am not completely sure, I think the controls that you found in the control pallet are used in conjunction with the software. Depending on what kind of image processing you want to conduct in LabVIEW, you might want to consider purchasing that product.
    If cost is an issue, there are functions in LabVIEW which allows you to take in image files and process them. However, please keep in mind that the capabilities are limited.
    Images should be loaded onto LabVIEW not via the clipboard but through loading it from folders or directories. (There might be a way to and so if you find a way please let me know! I would like to know myself =D) If you open the function pallet by right clicking on the block diagram, in the programming folder you should find a directory called "Graphic and Sound". There, you'll find functions in which allows you to process images.
     In the "Graphic Type" directory there should be a function called Read JPEG file.vi. There are also others which allows you to read png and bmp files. Please note that there are functions which write as well. Set a file path on the block diagram and inside the "Grahic and Sound" there is a "Picture Function" directory and inside there, there should be a function called "Draw Flattened Pixmap.vi" That changes the image into a format where you can process on LabVIEW. Inside the "Picture Function" directory there are several functions which allows you to process the specified image. Play around with it and see how it goes. And don't forget to Write the file in the end to save any changes.
    I hope this helps
    National Instruments Japan
    Applications Engineer Taiki Hoshi

  • Submit program exporting list to memory and return in background

    Dear Experts,
    I am using the following code in one of my program to get opening and closing stock of a material.
    SUBMIT RM07MLBD
             WITH MATNR IN LOC_R_MATNR
             WITH WERKS IN LOC_R_WERKS
             WITH DATUM IN LOC_R_DATE
             WITH PA_SUMFL = WL_X
             AND RETURN
             EXPORTING LIST TO MEMORY.
    The program is working fine when executed in foreground. however when executed in background the job is cancelled. I tried to debug in background through SM50 and found that the program is terminated(No short dump but debug screen is closed and i dont see this program running in SM50) when the above code is executed.
    I found in the forum that when an ALV report is submitted in background it does not work. In my case the standard program is producing an ALV list (not ALV grid though).
    How would i avoid this situation because the program i am submitting is a standard program.
    What is the best solution to avoid from background jobs being cancelled when the above code is executed. Is there an alternate way that i can use to submit the program  and get data.
    Thanks in advance.
    Rajesh.

    Hi Rajesh,
    Just excute your standard program with the same input in back ground mode and check
    out put is coming or not .
    If output is not coming search by sy-batch and make the break points there and Ideantify
    the problem.
    When you execute the standard program  in back ground mode If the output is come it should in your Zreport also.
    I tried in my system in background mode also the output is coming for me.
    Thnx,
    Sam.

  • I need to be able to export the data from health kit and read it in something.  Anything.

    I've tried pretty much everything from Excel to downloaded and online apps.  I'm done downloading crap to my brand new computer.  My problem is that I need to be able to export the data into a readable format so that I can give it to my dr(s).  Is there ANY WAY that this is possible?  I'm kind of at my wits end here.  All help/suggestions are appreciated.
    What I've done:
    1.  Exported data.  It creates an xml file that can be opened in excel but gives raw data that no one but egghead developers can read (and I use that term in the best possible way.)
    2. Tried to download an excel add on.  Didn't work.
    3.  Tried several online applications.  Same result as Excel.
    Somehow this data has to be able to be read by someone other than myself, on my phone.
    Thanks to one and all for the many, many suggestions that I'm about to get.

    sam.loomis1234
    The only way out of Premiere Elements 11 is via export in video format (except for jpegs or audio under Publish+Share/Computer/Image or audio).
    The video is whole, not in a project file (project.prel).
    And, the Premiere Elements 11 project.prel does not appear to be an After Effects supported project format
    http://helpx.adobe.com/after-effects/kb/supported-file-formats-effects-cs4.html#main_head1
    Have you asked this question in the Adobe After Effects Forum regarding supported formats?
    http://forums.adobe.com/community/aftereffects_general_discussion
    ATR

  • How to export some data from the tables of an owner with integrity?

    Hi to all,
    How to export some data from the tables of an owner with integrity?
    I want to bring some data from all tables in a single owner of the production database for development environment.
    My initial requirements are: seeking information on company code (emp), contract status (status) and / or effective date of contract settlement (dt_liq_efetiva) - a small amount of data to developers.
    These three fields are present in the main system table (the table of contracts). Then I thought about ...
    - create a temporary table from the query results table to contract;
    - and then use this temporary table as a reference to fetch the data in other tables of the owner while maintaining integrity. But how? I have not found the answer, because: what to do when not there is the possibility of a join between the contract and any other table?
    I am considering the possibility of consulting the names of tables, foreign keys and columns above, and create dynamic SQL. Conceptually, something like:
    select r.constraint_name "FK name",
    r.table_name "FK table",
    r.column_name "FK column",
    up.constraint_name "Referencing name",
    up.table_name "Referencing table",
    up.column_name "Referencing column"
    from all_cons_columns up
    join all_cons_columns r
    using (owner, position), (select r.owner,
    r.constraint_name fk,
    r.table_name table_fk,
    r.r_constraint_name r,
    up.table_name table_r
    from all_constraints up, all_constraints r
    where r.r_owner = up.owner
    and r.r_constraint_name = up.constraint_name
    and up.constraint_type in ('P', 'U')
    and r.constraint_type = 'R'
    and r.owner = 'OWNERNAME') aux
    where r.constraint_name = aux.fk
    and r.table_name = aux.table_fk
    and up.constraint_name = aux.r
    and up.table_name = aux.table_r;
    -- + Dynamic SQL
    If anyone has any suggestions and / or reuse code to me thank you very much!
    After resolving this standoff intend to mount the inserts in utl_file by a table and create another program to read and play in the development environment.
    Thinking...
    Let's Share!
    My thanks in advance,
    Philips

    Thanks, Peter.
    Well, I am working with release 9.2.0.8.0. But the planning is migrate to 10g this year. So my questions are:
    With Data Pump can export data just from tables owned for me (SCHEMAS = MYOWNER) parameterizing the volume of data (SAMPLE) and filters to table (QUERY), right? But parameterizing a contract table QUERY = "WHERE status NOT IN (2,6) ORDER BY contract ":
    1º- the Data Pump automatically searches for related data in other tables in the owner? ex. parcel table has X records related (fk) with Y contracts not in (2,6): X * SAMPLE records will be randomly exported?
    2º- for the tables without relation (fk) and which are within the owner (MYOWNER) the data is exported only based on the parameter SAMPLE?
    Once again, thank you,
    Philips
    Reading Oracle Docs...

Maybe you are looking for

  • Cannot connect to mysql server

    [530211450FCD7FAD57BCBD082C766733] [ERR] Errore JDBC:java.lang.NoClassDefFoundError: java/sql/SQLClientInfoException. Even i already set mysql-connector-java-5.1.3-rc-bin in JDK1.5\lib\ext folder.

  • Sneak Preview Slim Edition

    Does this edition contain Enterprise portal ,KM and Coll.Please reply.Thanks.

  • Strange problem with connection to Integrator Server

    Hi, I have a strange problem with making a connection to my Integrator Server. I have one workspace folder that I share between Integrator version 2.4 and 3.0 (I have several versions installed for testing purposes) When I try to create a new Integra

  • If I delete photos from "all images" will they delete in iPhoto ?

    I am looking for a way to delete unwanted photos from the HD. I have duplicates and superfluous photos all over the HD in various locations so I would like to delete them from whatever master location will clear them from the HD.

  • Grrr! Adjustments lose their paramaters when I "save as"...

    So, I have a poster with txt. On some of the txt I have applied a "stroke", then reduced the size to 1px and the opacity to %65. Looks awesome. BUT...when I try to "save as" a jpeg, pdf or even just try to flatten the image, the "stroke" size reverts