Create image without seeing it

Hi, i have an applet to draw something on, i have a button when you click on it that create an image and its ok... but the only way i know to create an image is to open the applet, draw what i want onto the Graphics object and display it at the screen, cause if i dont display it on the screen the image will be empty.. so my question is, can i create a image with a text program, if i already have the modification and the background and can load it, i dont want to see it, cause i dont want to load the applet each time i wanna create an image, i would like to create many images with data in my database without having to paint all the image on Graphics object and make it visible to create my image
sorry for the bad explication
thx a lot

to create a image i used this code
            Rectangle rect = dessin.getBounds();
            Image im = createImage(rect.width, rect.height);
            Graphics g = im.getGraphics();
            //write to the image
            dessin.paint(g);
            //dispose of the graphics content
            g.dispose();where dessin is a JPanel, to be able to create an image i need the JPanel to be visible, so the user see the image before i create it, all is paint on dessin JPanel
but now i want to create an image without make the JPanel visible to the users, but with my method i need too cause it give me a empty image
more understandable? sorry i have problem sometimes explain my problems in english
thx

Similar Messages

  • Saving created image without background?

    Hi I have PSE 8 and am new to this, I am trying to create a small 11x11 pixel orange circle but when i created it even using the transparency option, the image still gets saved with a white square background. Is it possible to save the created circle alone WITHOUT the white square background? If so, how please? 

    Open the editor and change the color swatch (usually black & white) to orange.
    Click on the arrows symbol so that orange becomes the background color.
    Select File > New > Blank File
    Set background contents to Background color and click OK
    Drag your elliptical marquee tool to form a circle and press ctrl+J
    You will see in the layers pallet a background layer and a transparent layer on top with your orange circle.
    Click in the layers pallet on the layer marked background and hit the trash can to delete.
    Resize your image to the dimensions you want.
    Then on the top menu select File > Save for Web
    Change from jpeg or gif to PNG-24 and check transparency.
    Click OK
    Choose a new file name and click OK.

  • Creating images with J2EE

    Hello everbody!
    I use the Sun Java System Application Server 8.1 and I am interested in creating images with Servlets. Because the J2EE specification prohibits the use of the AWT (and the Sun Application Server enforces this restriction by installing a security manager), I want to know which possibilities exist to create images without the AWT.
    Any comments are appreciated in advance!
    Regards,
    Stefan

    Hi ava,
    I am sorry for being unprecise. By creating images I mean drawing my own images from scratch. I wanna start by something like
    BufferedImage image = new BufferedImage( ... );and then draw into that image, using the usual drawLine etc. methods from java.awt.Graphics or java.awt.Graphics2D.
    But this is not possible, because the Application Server forbids using these methods.
    I am sure someone encountered this problem before me. There must be a solution without AWT. Maybe there exists a library.
    Any ideas?
    Regards,
    Stefan

  • Creating Thumbnails of Images without AWT

    I've searched in a lot of places, and am becoming increasingly surprised I cannot find a straightforward answer to a problem I have. I run Tomcat on a server which has no X11, and I do not want to install it. However, I am also trying to create a servlet which will take an image from a byte array and create a thumbnail of it.
    While I have seen many examples of this, all use AWT, which seems to require using X11 or some windowing system even to run at all (despite my not trying to create a window or anything). While I understand that there is an option that can be added to the initialization script for Tomcat ("JAVA_OPTS=-Djava.awt.headless=true") I would far prefer simple code that didn't use AWT at all.
    Does anyone know how to create a thumbnail or resize an image without the use of the AWT library whatsoever? Thanks very much!

    Hmm... sorry I didn't know that.
    I remember seeing some section on this website about Java Imaging or something like that and it seemed totally independent of AWT.
    I came accross another imaging article:
    http://johnbokma.com/java/obtaining-image-metadata.html , this one doesn't seem to use AWT - at least I don't see any in the imports.
    May be Images are supposed to work only with AWT.
    Here's another set of examples:
    http://www.exampledepot.com/egs/javax.imageio/pkg.html
    that demonstrates the javax.imageio package, but those examples also use AWT.
    I think one could re-size an image on a website to create thumbnails, by specifying a percent width and height. and may be there's no need to have a package to create thumbnails on a web page when it could be done with HTML and that's probably why there isn't image processing for web pages (this is just my guess work, I could be wrong)
    Message was edited by:
    appy77

  • Create PDF without image compression?

    How do i create a pdf from multiple images without any compression?
    Seems like even if i do optimize pdf and select png(edit the settings to do max res and no downscaling), when it saves the pdf, at 100% zoom, it's obviously bigger than my original png and compressed(or maybe it looks blurry because it's being upscaled when i never requested).
    In short, if my png is 500x500, i want it to be exactly that size at 100% maginification once the pdf is saved out. I don't want any compression, i don't want any scaling...why is it so hard to do this???
    Any help is much appreciated!

    However... the conversion can be lossless.  If you make a PDF file from a SINGLE image (different option) and select the image format in Files of Type you can click Settings and choose the format for compression. Choose ZIP and compression equivalent to PNG is used.
    You also have fine control when printing to PDF.
    It's just the Combine Files function, which is fast and simple, that lacks choices.

  • Using IMAQ create, set-up, acquire and windraw to save image without color map

    Hi,
    Attached is my VI (using labview 8.5) and am not sure where it is getting the color info from, but it saves the image as jpeg/bmp/tiff with colormap (confirmed by imread in matlab). Can someone help me save these images without colormap info.
    Thanks
    Attachments:
    HL Grab with two boards and SONY XC55_Images.vi ‏166 KB

    Hi Maverick269,
    I noticed that you posted this question over on the Machine Vision forums as well. That will definitely be a better place to get this question answered, so let's work on the issue over there :
    http://forums.ni.com/t5/Machine-Vision/Using-IMAQ-create-set-up-acquire-and-windraw-to-save-image/m-...
    In the future it helps us stay organized if we limit each issue to a single thread.
    Cheers,
    Andy C.
    Applications Engineer
    National Instruments 

  • Resizing images without export

    Hi all,
    I would like to create a folder that contains re-sized versions of my master images. The folder will be photos that I am posting to my web site and I want to be able to control their size and keep this resized image in my aperture library. I am uploading them through the site host's uploader (squarespace) using finder, not exporting through aperture. Is there a way to create duplicate,resized versions of the images without exporting and re-importing the photos?
    I know that aperture isn't photo editing software, but i expected that it would be able to do basic things (mirror, resize, etc) and am constantly disappointed. I could round-trip to photoshop, but I hope there's an easier solution.
    Thanks,
    John

    First question - why do you need the JPEGs? If it's to upload them to a site via FTP there are export plug-ins to do this directly from within Aperture.
    Using the media browser isn't going to help you at all because that will be accessing Previews in Adobe98 profile - not something you should be putting up on a website.
    I also came across this problem when I wanted to convert a large number of raw files to jpegs and keep the new jpegs in my library. At the time I was running low on disk space and didn't need the raws anymore, but had to go through the process of exporting and re-importing for a bunch of projects.
    Sorry, but that's a bit too alien an idea for me - I never threw away negatives back when I was using film, why would you throw away RAW files now?
    Another pet peeve I have is that there is no status indicator when exporting (2 minutes left, 25% done, etc....anything besides a beachball), so I don't know how long the export will take, and on my 2006 macbook it sometimes takes a while.
    At the bottom of the Browser pane on the left you will see a progress 'swirl' when exporting, importing or generating Previews. Click on it to bring up the activity window with progress bars for all current actions. You can also access it through Window>Show Activity.
    Ian

  • Unable to create image buffer after RAM preview

    Running into an odd and frustrating error. Built a comp using the new Ray-traced 3D renderer and now I'm regretting being an early adopter big time with all the problems I've been encountering with it. The latest comes whenever I do a longer RAM preview in an attempt to watch the whole duration of my comp. It will get to about 170 frames or so, at which point I've interrupted by pressing spacebar because I don't need to see all the way to the end of my work area (around 220 frames). It'll play the RAM preview back fine, and even loop it, but as soon as I stop playback, I get this error message: "After Effects warning: Unable to create image buffer." There's only one button: "okay" and as soon as I click it the same error pops up again and it will never go away, forcing me to close AE from the task manager. I've taken to saving before every RAM preview like I used to do with Flash before previewing my buggy swfs for fear I'll lose all my work after previewing. Any ideas about what might be causing this?
    Some more details about my comp:
    1920x1080 @ 29.97
    Ray-traced 3D
    About 70 3D layers (I'm guessing this is my downfall - new renderer not designed for this many layers?)
    Running Windows 7 Professional
    i7 2600K
    32GB RAM
    2x GTX 570 video cards running latest driver (301.42, CUDA 4.2.1)
    508GB free on my 2TB internal drive where the project and cache lives
    From my GPU info window in case it's useful:
    Fast Draft:
    Available
    Texture Memory:
    600.00 MB
    Ray-tracing:
    GPU
    OpenGL
    Vendor:
    NVIDIA Corporation
    Device:
    GeForce GTX 570/PCIe/SSE2
    Version:
    3.0.0
    Total Memory:
    1.20 GB
    Shader Model:
    4.0 or later
    CUDA
    Driver Version:
    4.2
    Devices:
    2 (GeForce GTX 570, GeForce GTX 570)
    Current Usable Memory:
    1.04 GB (at application launch)
    Maximum Usable Memory:
    1.25 GB

    Yeah, some buffer is very likely not flushing when you interrupt the preview and then there is no more memory on the graphics hardware. Consider setting the work area and your preview options to use only the work area. if it finishes the preview "correctly", it may not suffer the issue. Beyond that - raytracing doesn't/ shouldn't care about the number of items. The math is such, that it makes no difference whether you render a million polygons or just one. Of course there are still limitations due to the GPU dependency, but I doubt you ever truly exhaust the cards' geometry buffers. Compared to pixel data that is a small amount...
    Mylenium

  • How to load an image without a gui? big problems...

    Hey guys, I usually try my best to not ask for help and figure stuff out myself. But this last week i've been having big problems with this work project.
    My goal is to load images from disk, and append them to each other to create one big image.
    The images are 0-9.jpg each file containing a number in it. then i create one big file with 4 numbers in it. called final.jpg.
    so far i can do all this, but whenever the program is finished, the application just keeps running. the program has literally gone through all the steps... i have a system.out.println printed on the last line after the main, after the class instantiation... and still it stays running.
    how do you guys load images without a gui? This program will probably be running under unix, so i can't create a (for component example)
    Panel() and media track the file load... so i'm pretty much stumped
    any help you guys can provide would be really incredibly helpfull at this point. I have searched these threads for a few hours without luck. I found only 1 real post related to my problem, but eventually they said use MediaTracker = new Mediatracker( new Panel() ); which i can't use. :(
    Thanks a lot guys.
    :D

    yeah tried doing that, didn't work either.
    UPDATE
    I FINALLY found a way...
    and here it is for others to find!
    public BufferedImage getImage(String filename) throws Exception {
    FileInputStream input = new FileInputStream( filename );
    JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder( input );
    BufferedImage image = decoder.decodeAsBufferedImage();
    return image;
    it returns an image buffer, but it's better than nothing! :)
    atleast this functions under unix.

  • How can I attach an image without the image is in the email body? (using the new mail the Lion)

    How can I attach an image without the image is in the email body? (using the new mail the Lion)
    I want in attachment, not in the body mail.

    I think your only solution is to zip the image files first and then attach them.
    Read this from a site I found:
    Sending Graphical Attachments -- When you attach a graphical image to your message, the recipient of your message sees the image inline (that is, in the body of the message) if her email client supports inline display. ("Take Control of Email with Apple Mail" contains a table listing the capabilities of popular Mac and PC email clients.) If a client does not support inline display (or the recipient has turned off the inline display option), the file appears as an attachment that must be opened in a separate program.
    On the one hand, an inline image is easier for the recipient to see - all she has to do is look at it. On the other hand, inline images can be frustrating to scroll through. If you do not wish to send a graphical image inline, you must compress the file before attaching it - Mail, sadly, lacks a built-in compression option, though fortunately for Panther users, the Finder offers Zip compression without requiring a separate application.
    Note that when you compose a new message, Mail always shows attachments in the body of your message. You can manually drag them somewhere else, but many email clients display all attachments in a separate list, regardless of where you place them in the message body.
    If you paste an image into a message or drag & drop an image from another window (say, a Web browser), Mail converts the raw image data to an attachment in TIFF format. On the other hand, if you drag & drop the icon of an image file (or use the Attach button to locate the file using the file browser), Mail leaves the attached image in its original format. This difference is significant, because although most email clients can display JPEG images just fine, support for TIFF - especially in non-Mac email clients - is less common. If possible, I suggest attaching image files as opposed to pasting or dragging in raw image data.

  • Disk Utility create image error - "Invalid Argument"  - on USB drive.

    I wanted to use a USB 2.0 drive that I share with a Windows machine to backup my son's iBook. I divided the drive into two partitions and formatted the iBook backup partition as FAT32. I attempted to create a read-only disk image on the USB drive in order to backup the iBook, but it does not complete successfully - it terminates with an "Invalid Argument" error. I also tried creating a read/write disk image and that terminates with an error "File or Folder not found." Anyone have any tips or clues as to what may be the problem?
    iBook   Mac OS X (10.4.3)  

    I figured out my problem to some extent. I was not creating an empty image, but was trying to create a disk image without selecting a folder. Once I selected create an empty image from the File menu I did not get the error and was able to create an empty image on the USB drive.

  • Error creating //image file

    I don't know if anyone out there is still getting this error message, but I have found that by simply removing the "/" in the FTP dialog box under "host directory" your problem is solved. Apparently Muse adds the "/" and if you have one in the dialog box, there will be two instead of one causing the error. I am not a tech and just discovered this fix. Hope it helps!

    Hi Hollie, and welcome to the forums!
    Have you created images before successfully?
    Is this to/on your boot drive, or an external drive?
    Have you done any Disk/OS maintenance lately?
    We might see if there are some big temp files left or such...
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is now free, and likely the best/easiest...
    http://www.omnigroup.com/applications/omnidisksweeper/
    WhatSize...
    http://www.macupdate.com/info.php/id/13006/
    Disk Inventory X...
    http://www.derlien.com/
    GrandPerspective...
    http://grandperspectiv.sourceforge.net/

  • How can I protect formulae in a newly created spreadsheet without locking the whole sheet ?

    How can I protect formulae from being overwritten on a newly created spreadsheet without locking the whole sheet ?

    Olly,
    I'll be picky here on nomenclature ;-)
    Tables and other Obects can be locked, but Sheets can't be locked.
    If you wish to shield some parts of your content from accidental modification, arrange your layout to put that sensitive content in tables separate from the tables that need to be accessed, and lock the sensitive ones. It's also possible, but rather clunky, to place shields over the sensitive area. A shield can be made by Inserting a Shape and positioning the shape over the sensitive area. With the shape selected, go to the Graphics Inpector and set the Opacity of the shape to zero. You will then be able to see through the shape but will no be able to Click through it to get at the cells below. This method is inconvenient because you have to worry about keeping the shape aligned with the table should the table need to change size or shape.
    Jerry

  • Using Cap6, need to create menu screen that allows user to click a button, branch to other screens, and return to main menu. When returning to the main screen the button that was clicked will be grayed out or inactive.  How do I do this?  I created image

    I am trying to emulate a piece of equipment.  I need the user to be able to click on specific buttons that will take the user to another screen(s).  After viewing those screens the user will be directed back to the main screen where the user would know which buttons had been pressed and which still needed to be pressed.  I create image buttons with the 3 states - that worked except when the user returns the slide is reset and so the user does not see the 3rd state of the button.  How can I get that 3rd state to stay after user returns to the main screen? 

    Hi Elizabeth,
    Since I just did this morning what you are currently attempting to do, I thought I'd share my method.  I must provide a disclaimer and tell you that I am not an expert in Captivate advanced actions--like you, I am still figuring them out.  However, I am happy to share here anything I have learned thus far.
    First, here is what my initial slide looks like (see interaction slide below).  I created all of the icons (including the 'grayed out' icon on the second screenshot) in a few minutes using Adobe Illustrator. The icons have been imported as custom multi-state buttons so that I could have the desired effect when the user hovers over the image--the yellow 'explore' flag appears only when the mouse is over the icon. When the learner click either image, they are sent to the corresponding slide.  Once both slides are viewed, a 'continue' button will appear at the base of the screen (something I've not figured out--I sent an email to Lieve begging for some guidance). 
    The initial slide (interaction slide):
    Second, here is a depiction of what happens when the learner returns to the interactive slide from the content slide (see image below):  Once the learner visits the 'Battery Content' slide and then returns to the interaction slide, the images have changed.  The multi-state button is hidden (through the advanced action), the replacement image (the image with the completed banner over it) is shown, and a hidden click box to allow the user to return to the previously visited page (just in case they desire to do that) is "shown" to allow navigation since the button is no longer there (because it is magically hidden).
    Content Slide 1:
    Remember, there may be an easier way to do this in Captivate.  I am using Cp6 for this module.
    1. I created two user variables as follows
    Name: v_batteryExplore
    Value: 0
    Name: v_fuelExplore
    Value: 0
    2. I created an advanced action for each as shown below (showing only one--duplicate the first and change the names to match the content):
    Credit: I learned these steps from @Lilibiri and Dr. Pooja Jaisingh!
    I have also noticed that it matters where the buttons are located on the timeline.  It seems best to have buttons above all other content.  Not sure why, but I have had images not appear when I have not done this.
    And the last step you do not want to forget; you need to remember to tell Captivate to use the action.
    As a final note, remember that the elements you do not want to appear on the initial screen must not be initially visible.  Make sure to set them to invisible by removing the checkmark in the 'Visible in output' box located next to the button name.  In my case, the image of the completed battery and the invisible button to allow a revisit of content was initially hidden.  Here is a final screenshot of my timeline for this interaction.  I hope this information helps you!

  • EPub Scanned Images without Text Flow

    I am working on an ebook that has lots of complex illustrations, tables, captions. Scanning the images by converting them to JPEG is needed in order for the illlustrations and text to not move. Text flow is an option that I will not be able to offer.
    How do I create an ePub book with scanned images without text flow. I did it once, but cannot remember how to do it.

    TabulaMentis wrote:
    The ePub version of the ebook will have a fixed layout without text flow. You mentioned that I buy someone's book, but this is a simple question. Why does InDesign not make it easy to convert an InDesign CS5.5 file into an ePub file with fixed images without text flow. Amazon and Google have lots of those types of ebooks in ePub format for sale with fixed images without text flow?
    Because if you read anything about creating EPUB files, you'll find that that's NOT how they're intended to be used.
    For example, in the first paragraph of the Wikipedia article about EPUB, you'll read:
    "EPUB is designed for reflowable content, meaning that the text display can be optimized for the particular display device used by the reader of the EPUB-formatted book. The format is meant to function as a single format that publishers and conversion houses can use in-house, as well as for distribution and sale."
    So that's why InDesign exports EPUB the way it does.

Maybe you are looking for