How to save in GIF or JPEG format?

I make a drawing using Graphics objects and now i want to save it to a GIF or JPEG or BMP file.
How to go about it?
TIA
Naveen

Hi,
Here is some code that may help.
NOTES: pixels were recieved from a PixelGrabber proccess.
transColor was picked from an image (you can supply your own code its just an int).
blnTrans is a boolean flag indicating that a transparaent color was picked.
dim is the dimensions of the image (any image will do).
import javax.swing.*;
import javax.media.jai.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import com.sun.image.codec.jpeg.*;
import com.sun.media.jai.codec.ImageCodec;
import com.sun.media.jai.codec.ImageEncoder;
import com.sun.media.jai.codec.PNGEncodeParam;
import com.sun.media.jai.codec.BMPEncodeParam;
import com.sun.media.jai.codec.TIFFEncodeParam;
import java.awt.image.*;
import java.awt.color.*;
import Acme.JPM.Encoders.*;
//Some more Code
int fileType = 0;
File file = null;
if (pixels != null)
//create a file save dialog.
//create a File Chooser.
fc = new JFileChooser(););
int returnValue = fc.showSaveDialog(this);
//detemine the choose.
if (returnValue == JFileChooser.APPROVE_OPTION)
file = fc.getSelectedFile();
//get the file ext and translate for switch.
Utils ut = new Utils();
String ext = ut.getExtension(file);
if (ext.equals("gif"))
fileType = 0;
else if (ext.equals("jpg"))
fileType = 1;
else if (ext.equals("png"))
fileType = 2;
else if (ext.equals("tif"))
fileType = 3;
else if (ext.equals("bmp"))
fileType = 4;
switch (fileType)
case 0:
if (blnTrans)
NewImageProducer img = new NewImageProducer(pixels, TransColor, dim);
try
FileOutputStream fos1 = new FileOutputStream(file);
Acme.JPM.Encoders.ImageEncoder e = new GifEncoder(img, fos1);
e.encode();
fos1.close();
catch (java.io.IOException e) {}
else
BufferedImage imb = new BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_INT_RGB);
imb.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
try
FileOutputStream fos2 = new FileOutputStream(file);
Acme.JPM.Encoders.ImageEncoder e = new GifEncoder(imb, fos2);
e.encode();
fos2.close();
catch (java.io.IOException e) {}
catch (Exception er) {}
break;
case 1:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_INT_RGB);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a JPEG
FileOutputStream fos3 = new FileOutputStream(file);
JPEGImageEncoder jpeg = JPEGCodec.createJPEGEncoder(fos3);
jpeg.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
case 2:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_INT_RGB);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a PNG
FileOutputStream fos3 = new FileOutputStream(file);
PNGEncodeParam pp = PNGEncodeParam.getDefaultEncodeParam(bimg);
ImageEncoder png = ImageCodec.createImageEncoder("PNG", fos3, pp);
png.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
case 3:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_4BYTE_ABGR);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a TIF
FileOutputStream fos3 = new FileOutputStream(file);
TIFFEncodeParam tp = new TIFFEncodeParam();
ImageEncoder tif = ImageCodec.createImageEncoder("TIFF", fos3, tp);
tif.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
case 4:
try
BufferedImage bimg = new java.awt.image.BufferedImage((int)dim.getWidth(), (int)dim.getHeight(), BufferedImage.TYPE_3BYTE_BGR);
bimg.setRGB(0, 0, (int)dim.getWidth(), (int)dim.getHeight(), pixels, 0, (int)dim.getWidth());
//Encode as a BMP
FileOutputStream fos3 = new FileOutputStream(file);
BMPEncodeParam bp = new BMPEncodeParam();
ImageEncoder png = ImageCodec.createImageEncoder("BMP", fos3, bp);
png.encode(bimg);
fos3.close();
catch (java.io.IOException e) {}
break;
} //end of switch.
} //end of file option.
//Here is NewImageProducer
import java.awt.image.*;
import java.util.*;
import java.awt.*;
import java.applet.*;
import java.awt.color.*;
class NewImageProducer implements ImageProducer{
private Vector vector = null;
int[] pixels;
int alpha;
Dimension dim;
public NewImageProducer(int[] pixels, int alpha, Dimension dim){
vector = new Vector();
this.pixels = pixels;
this.alpha = alpha;
this.dim = dim;
public void addConsumer(ImageConsumer ic){
if (isConsumer(ic) == false)
vector.addElement(ic);
public void removeConsumer(ImageConsumer ic){
if (isConsumer(ic) == true)
vector.removeElement(ic);
public boolean isConsumer(ImageConsumer ic){
return vector.indexOf(ic) > -1;
public void startProduction(ImageConsumer ic){
addConsumer(ic);
int x = (int)dim.getWidth();
int y = (int)dim.getHeight();
Hashtable ht = new Hashtable();
byte[] r = new byte[pixels.length];
byte[] g = new byte[pixels.length];
byte[] b = new byte[pixels.length];
byte[] a = new byte[pixels.length];
for (int i=0; i<pixels.length; i++)
if (pixels[i] == alpha)
a[i] = (byte)0;
else
a[i] = (byte)255;
for (int i=0; i<pixels.length; i++)
r[i] = (byte)((pixels[i] & 0xFF0000) >> 16);
g[i] = (byte)((pixels[i] & 0x00FF00) >> 8);
b[i] = (byte)(pixels[i] & 0x0000FF);
ColorModel cm=null;
try{
cm = new IndexColorModel(8, pixels.length, r, g, b, a);
catch (Exception e){e.printStackTrace();}
Vector v = (Vector)vector.clone();
Enumeration e = v.elements();
while (e.hasMoreElements()){
ic = (ImageConsumer)e.nextElement();
ic.setColorModel(cm);
ic.setDimensions(x, y);
ic.setProperties(ht);
ic.setHints(ImageConsumer.RANDOMPIXELORDER);
int[] p = new int[pixels.length];
for (int i=0; i<pixels.length; i++)
p[i] = i;
ic.setPixels(0, 0, x, y, cm, p, 0, x);
ic.imageComplete(ImageConsumer.STATICIMAGEDONE);
public void requestTopDownLeftRightResend(
ImageConsumer ic){;
//Here is Utils
import java.io.File;
public class Utils {
public final static String jpeg = "jpeg";
public final static String jpg = "jpg";
public final static String gif = "gif";
public final static String tiff = "tiff";
public final static String tif = "tif";
public final static String png = "png";
public final static String bmp = "bmp";
* Get the extension of a file.
public static String getExtension(File f) {
String ext = null;
String s = f.getName();
int i = s.lastIndexOf('.');
if (i > 0 && i < s.length() - 1) {
ext = s.substring(i+1).toLowerCase();
return ext;
Get the Acme class at:
http://www.acme.com/java/software/Package-Acme.JPM.html

Similar Messages

  • How to save my project to JPEG format or any picture format?

    Hi
    I just finish all my edit and possible to convert to JPEG or any picture format? Because i used Illustrator to edit my picture.

    File --> Export.
    Mylenium

  • How do I save my video in jpeg format so I can add picture to it and burn a DVD through Photo Explosion version 4

    How do I save my video in jpeg format so I can add picture to it and burn a DVD through Photo Explosion version 4

    LRP
    Thanks for the follow up.
    In Premiere Elements 13/13.1, your export choices are in the Publish+Share section of the project. There are several choices and sub-choices.
    Example: Publish+Share/Computer/and then a list of choices under that, such as, MPEG, AVI, AVCHD, XAVC-S, Windows Media, QuickTime, Image, Audio.
    And each has Presets which define the export settings. Adobe offers default settings which are usually optimized ones. But, it also allows you to customize the preset selected. You do that by clicking on the Advanced Button of the selected preset and customizing the settings under the Video Tab, Audio Tab, and, if applicable, Multiplexer Tab.
    From what you wrote, I thought that you might be asking about exporting a video with a video codec = Photo JPEG.
    To do that you would to to
    Publish+Share
    Computer
    QuickTime
    with Presets = either the one for 4:3 of 16:9 as appropriate for your project,
    and then clicking on the Advanced Button, and then the Video Tab under the Advanced Button.
    Then selecting Photo JPEG for the video codec field.
    Tip: The QuickTime choice is not seen unless you scroll down the list of Computer choices. Use the thin scroll bar to the right of the Computer choices.
    Please explore Premiere Elements 13/13.1's Publish+Share/Disc/DVD with standard or widescreen preset for your creation of the DVD-VIDEO on DVD disc.
    The Premiere Elements timeline destined for this choice could consistent of supported photos and or videos.
    Please consider.
    Any questions and need clarification, please do not hesitate to ask.
    ATR

  • How can i write the image in gif or jpeg format??

    how can i write the image in gif or jpeg format??

    thx someone else help me in another topic

  • Save image to a JPEG format?

    Dear All,
    1. I have a float array containing pixel values. From that array I want to create an image (let's say in JPEG format).
    How should I do that?
    2. If I get a TiledImage (JAI package), how should I save it using to JPEG format?
    thanks

    What about continuing in your other threads?
    http://forum.java.sun.com/thread.jspa?threadID=665934&messageID=3898160#3898160
    http://forum.java.sun.com/thread.jspa?threadID=665488&messageID=3896085#3896085
    http://forum.java.sun.com/thread.jspa?threadID=664605&messageID=3892317#3892317
    ...and you should never cross-post questions.
    /Kaj

  • How to save a invoice in Word Format

    Dear  Sd Gurus
    Please tell how to save a invoice in any format like word format other than the printed stationery .This saved document will be used for mailing to the customer.
    No interface with internet or EDI .
    Hope for a reply soon
    Satish Kullu

    Hi Satish,
    First, your SAP system must be configure by the basis people in order for you to send an external mail. 
    Whether it can send pdf or other file format will depends on the Mail Server you are using.
    The basis people must also maintain the conversion parameters so that SAP knows how to convert the billing documents to be send as a pdf file or other desired format specified by your company.
    Finally, you have define the IMG in Maintain Output Determination for Billing Documents (Output type MAIL) 
      Reward points if this helps.
    Regards
    Karan

  • How to save layout with ALV Pivot format

    Hi
    In ALV report I have  25 fields but I want to use 10 fields out of 25 fields in Pivot Table. My problem is how to save this layout with Pivot format for on going use. At every time execution of report I need not required to set  Pivot Table.
    Please help me.
    -Sanjay

    Hi,
    Are you using FM REUSE_ALV_GRID_DISPLAY? If yes, then pass 'X' to the parameter I_SAVE while calling the fm.
    if you are using Object Oriented ALV, then call the below method before calling the method for display
    DATA : gr_layout TYPE REF TO cl_salv_layout,
           gr_layout_key TYPE salv_s_layout_key.
    CALL METHOD gr_functions->set_all
      EXPORTING
        value  = IF_SALV_C_BOOL_SAP=>TRUE.
      MOVE sy-repid TO gr_layout_key-report.
      CALL METHOD gr_table->get_layout
        RECEIVING
          value = gr_layout.
      CALL METHOD gr_layout->set_key
        EXPORTING
          value = gr_layout_key.
      CALL METHOD gr_layout->set_save_restriction
        EXPORTING
          value = if_salv_c_layout=>restrict_none.
      CALL METHOD gr_layout->set_default
        EXPORTING
          value = if_salv_c_bool_sap=>true.
    Regards
    Vinod
    Edited by: Vinod Kumar on Jul 2, 2010 3:40 PM
    Edited by: Vinod Kumar on Jul 2, 2010 4:43 PM

  • Is save for web in JPEG format lossless when quality is 100%?

    I am trying to figure out if I can reduce optimised JPEG sizes further than what Photoshop can offer.
    My boss has recently questioned whether the file sizes can be reduced using lossless JPEG's further than the sace for web function in photoshop.
    From what I can make of it, lossy is the option on GIF files, and therefore I am assuming that the optimisation is lossless for a JPEG at 100 percent quality and lossy when the quality is reduced?
    I just want to clarify that I am saving images for the web at the smallest size I can without losing too much quality.
    All the images I save are 450px wide @ 75 dpi, but vary in length from 800px high to 1500px high, but have to be saved under 100kb.
    Can anyone clarify the lossless and lossy in JPEG format in save for web?
    Thanks
    Ray

    As c. says above, JPEG is a lossy compression - there is no lossless JPEG.
    PNG 24bit offers lossless compression, that is it performs compression analogous to a zip archive, whereas JPEG works by (in extremely lay terms) building a new image that resembles the original.
    GIF and PNG exports let you reduce the number of colours to get better compression - there are fewer pixel differences to compress at 8bit colour depth. Hence a 16 colour PNG will have a vastly smaller file size than a 24bit PNG, and depending on the image may be much smaller than a similar quality JPEG.
    Depending on how far off your 100KB ceiling you are, you may be able to improve your file exports by cleaning up the source image - reduce noise and if possible explore exporting as 8bit pngs with fewer colours - avoid using diffusion or noise in the export options. Find the balance between acceptable file size and image quality... photographs tend to be the hardest thing to compress because there's so much detail data, especially in darker (low light) areas.

  • How to save multiple images from jpeg to psd?

    I'm pretty new at this and have tons of vacation photos. Things I've read have left me terrified of leaving my images in jpeg, but I don't know how to save them all to .psd (and is that really the format I want to use?). I tried, and suddenly I'm out of space on my harddrive, so I think I've made copies of copies and have way more saved than I need. Any advice is appreciated - thanks.

    <[email protected]> wrote<br />> ...Things I've read have left me terrified of leaving my images in jpeg...<br /><br />Andrea,<br /><br />If the JPEG files are straight out of your camera, there is no harm in <br />"leaving" them as-is...  they don't degrade from just sitting there.<br /><br />The possible degradation of JPEG files comes from saving as a JPEG - <br />typically after you have done an edit to the image.<br /><br />One good way to approach the issue:  when you open an image for editing, <br />before you do anything, click the menu File > Save As...  and then choose <br />the PSD file type.  This will make a copy for you to work with, which will <br />NOT degrade as you save, re-edit, re-save, etc.  After you're finished <br />working it over, if you need a JPEG copy, use the File > Save As...  and <br />select JPEG to make an edited copy in the smaller file format.  (File > Save <br />For Web is also useful for this - it allows you to set your quality and size <br />parameters on-the-fly as you save)<br /><br />HTH,<br /><br />Byron

  • How to save an image in different format

    i want to save an image in different format (as .jpg ,.gif, .tiff, .png, .bmp) using save dialog box , where format should come in drop box menu "Save as type" in save dialoge box.what to do.???????plz any one suggest me .........

    alok_raj wrote:
    i want to save an image in different format (as .jpg ,.gif, .tiff, .png, .bmp) using save dialog box , where format should come in drop box menu "Save as type" in save dialoge box.what to do.???????plz any one suggest me .........1) Spell words properly. That word is 'please'.
    2) Fix your sticky keyboard for the '?' and '.' keys. Only one of those characters is generally needed to denote a question or the end of a sentence. Two or more often denotes a dweeb.
    I might come back to your question later, assuming I can actually bare looking at that mess long enough to figure out what you want.

  • How to save a Tiff to Jpeg and automatically open the Jpeg copy?

    I got this workflow,
    1) From LR export to PS
    2) Do all essential editings.
    3) Save. File become 'xyz.tiff' now. (I want to keep this as master copy)
    4) Crop to 4r, Save a Jpeg copy as 'xyz 4r.jpg'
    5) PS save it as a copy, but do not automatically open the Jpeg copy. The tiff remains opened. I have to manullay Open, browse to it, and open the Jpeg. The 'Open Recent' list also do not list 'xyz 4r.jpg'.
    6) Do 4r sharpening for the 'xyz 4r.jpg', save it.
    Basically the files I want to keep and worked on is like this: NEF -> xyz.tiff -> xyz 4r.jpg -> xyz sml.jpg(maybe)
    Now, it there a way in step (5) to have PS save the Jpeg copy, and automatically open it? I dont care if the Tiff copy remains opened or not, I am done with it.

    Like Christoph, I ask myself why on Earth would anyone want to do that? 
    To keep working on an already lossy file which will further deteriorate evey single time you save and re-save it and close it? 
    That's just nuts!
    The abominable JPEG format is a necessary evil, but I use it only as the final output file when someone demands a JPEG for whatever reason.
    By all means only work on losless formats like PSD, PSB or TIFF.
    Working on a JPEG in order to make it smaller defies all logic.

  • How to save transperant gif

    I am building a generic graph package and I wanted to capture the graph (image) and save it into a GIF file with a transperent background.
    I have been struggling with the transperant part for a whole day, but now I finally found how to do it and I just wanted to share this knowledge with the rest of you.
    <b>1.) Generate the Graph</b>
    I created two new methods BufferedImage getImage() and void drawImage( Graphics2D )
    <pre>
    public BufferedImage getImage( int width, int height ) {
    BufferedImage bufImage = new BufferedImage( width, height, BufferedImage.TYPE_4BYTE_ABGR ); //Create a new BufferedImage
    Graphics2D graphics2D = bufImage.createGraphics(); //Creates a Graphics2D, which can be used to draw into this BufferedImage
    graphics2D.setColor( new Color( 255, 255, 255, 0 ) ); // The last int is the alpha value and 0 will make the Color transperent
    graphics2D.fillRect( 0, 0, width, height ); // Fill a Rectangle with the same size as the image with the transparent color
    drawImage( graphics2D ); //Draw the actual graph on the transparent Rectangle
    return bufImage; //Return the BufferedImage
    </pre>
    <pre>
    public void drawImage( Graphics2D g ) {
    drawGraph( g ); //Draws the axis
    putValues( g ); //Draws the actual values/graph
    </pre>
    <b>2.) Paint the Graph in you Component (Panel/JPanel, Frame/JFrame, etc)</b>
    <pre>
    public void paint( Graphics g ) {
    Dimension bounds = this.getSize(); //Get the Dimension/Size of the Component
    g.drawImage( getBufImage( bounds.width, bounds.height ), 0, 0, this ); //Get the BufferedImage and draw it on the Components Graphics Object
    </pre>
    <b>3.) Save the Graph into a GIF file</b>
    <b>3.1. Download the Acme package to be able to save to GIF</b> (You will only need the GifEncoder, ImageEncoder and IntHashtable).
    <b>3.2. Save to GIF</b>
    <pre>
    import Acme.*;
    import Acme.JPM.Encoders.*;
    public void saveGIF( String filename, int width, int height ) {
    BufferedImage bufImage = getBufImage(); //Get the BufferedImage with the Graph drawn on a transparent Rectangle
    Graphics2D graphics2D = bufImage.createGraphics();Creates a Graphics2D, which can be used to draw into this BufferedImage
    graphics2D.setRenderingHint( RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR ); //Sets the value of a single preference for the rendering algorithms
    try {
    GifEncoder gifcoder = new GifEncoder(bufImage, new BufferedOutputStream( new FileOutputStream( fileName + ".gif" ) ) ); //Create a new GIFEncoder for the BufferedImage and a OutputStream
    gifcoder.encode(); //Write the image into GIF
    catch( FileNotFoundException fnfe ) {
    System.err.println( "error: MGraph.saveImage( String ): " + fnfe );
    catch( IOException ioe ) {
    System.err.println( "error: MGraph.saveImage( String ): " + ioe );
    </pre>
    That's it! I hope this will be helpful and save you some time.
    /Max

    I am also going to start to build some form of graphic plot toolkit for a project in my university. I would be great to know how you have defined your API and how the output of the graphs look like. If you are willing to share that?
    Regards,
    Peter.

  • How to save greyscale image as jpeg?

    Anyone know how to save a greyscale image as a jpeg in labview?

    Hi Jonathan,
    If I understand you correctly, you had a greyscaled image, which you applied color to and now want to save this new image.  Before I jump into possibly solutions, I have a question for you. 
    Are you using any IMAQ, Motion, or Vision VIs?  If not, try using the Picture Control VIs - specifically, the "Write JPEG File.VI"
    If that won't work, please post a small piece of code illustrating the issue.
    Thanks!
    Janell Rodriguez | Applications Engineer | National Instruments

  • How to Save to RTF or Word Format?

    I'm just getting started with Framemaker.  I'm trying to figure out how to save an existing Framemaker book to an RTF or Word compatible format.  The Framemaker 9 User Guide says it's an option on the SaveAs command, but RTF isn't one of the available options I see.  Am I missing an add-on module to support this file format perhaps?  Or am I just looking in the wrong place? 

    Saving as RTF is usually at the bottom of the dropdown list:
    [Ignore the red circle - recylced screen capture - more or less the same as in FM9]
    However, the RTF from FM's filters isn't all that stellar in moving FM docuemtns to Word format. The Mif2go tool fom Omni Systems is highly recommended for excellent conversions. See: http://www.omsys.com/dcl/mif2go_main.htm

  • How to save JFrame image as png format?

    hello all..
    i've encountered some problem while i using my Java3D to load my VRML file & save it in png format.
    i've loaded the VRML file in my Java 3D and display it on the JFrame.
    now, i want to save the image as PNG format, but i can't save the image, but just save the background & canvas.
    here's my code:
    Button button = new Button("Save image");
    button.addActionListener( new ActionListener()
    public void actionPerformed(ActionEvent event)
    RenderedImage image = myCreateImage();
    // Write generated image to a file
    try {
    FileDialog fd = new FileDialog(f, "Save as PNG", FileDialog.SAVE);
    fd.show();
    String name= fd.getFile();
    // Save as PNG
    ImageIO.write((RenderedImage)image, "png", new File(name));
    catch (IOException e) {}
    content_pane.add(button, BorderLayout.SOUTH);
    try
    FileReader fr = new FileReader( "TS.java" );
    BufferedReader br = new BufferedReader(fr);
    catch(Exception e) {}
    pack();
    setLocationRelativeTo( null );
    setSize(800, 600);
    setLocation(0, 40);
    setVisible(true);
    setBackground(Color.white);
    public RenderedImage myCreateImage() {
    int width = 800;
    int height = 600;
    // Create a buffered image in which to draw
    BufferedImage bufferedImage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2d = bufferedImage.createGraphics();
    g2d.dispose();
    return bufferedImage;
    private void loadFile(String file) {
    int flag = VRML97Loader.LOAD_ALL;
    if(staticLoad)
    flag &= ~VRML97Loader.LOAD_BEHAVIOR_NODES;
    VRML97Loader loader = new VRML97Loader(flag);
    // if the file is a directory, ignore it
    File f = new File(file);
    if(f.exists() && !f.isFile()) {
    System.out.println("Can't load directories specified");
    System.exit(1);
    URL url = null;
    Scene scene = null;
    try {
    if(url != null)
    scene = loader.load(url);
    else
    scene = loader.load("vrml/fish.wrl");
    } catch(Exception e) {
    System.out.println("Exception loading URL:" + e);
    e.printStackTrace();
    System.exit(0);
    urlLabel.setText("File " + file);
    if (scene != null) {
    // get the scene group
    sceneGroup = scene.getSceneGroup();
    sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
    sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
    sceneGroup.compile();
    // add the scene group to the scene
    examineGroup.addChild(sceneGroup);
    // now that the scene group is "live" we can inquire the bounds
    setViewpoint();
    // setupBackground(scene);
    // setupLighting(scene);

    Your g2d is doring nothing!
    Indent your code.
    class{
       type data1;
       type data2;
       type method(){
           statement;
            clause{
               statement;

Maybe you are looking for

  • How can I see preview images of STN files in CS4?

    I save many of my art files as STN (Genuine Fractals) files so I can print on demand at various sizes. I used to be able to see tiny preview images of these files; now, using CS4 32-bit or 64-bit with Windows 7 64-bit OS, all I see in my STN folder i

  • During an update my iphone wiped all the music I had bought on itunes on my phone and i hadnt backed it up, how do i get those songs back?! help!!!

    help! during an update it somehow went terribly wrong and restored my phone back to factory settings! I didnt lose my photos or contacts but have lost all the songs i bought via my itunes app! I admit I havent backed up recently, but how do i get tho

  • I could never get it to report never being a server...

    I had posted the following at a different location: Background My windows laptop failed and my iMAC's hard drive was recalled recently.  During this time I decided to buy a MacBook Pro and migrate everthing from my Windows laptop.  I also bought Airp

  • SO TIRED of 0 stars support!

    Wow what can I say!  Billing service is non existant.  No customer service reps have any authority.  Cant get my email right  even though its right on myverizon!  Say they have tried to contact me about price increases which I never received.  Everyt

  • Retrieving EP roles from web dynpro

    Hello I'm sure this is a common problem but I've checked all the older posts and I just can't get it working. We have a web dynpro app that runs within an EP iView (EP6SP14), and we need to retrieve the portal roles for the user. With the APIs (using