Please Help: How to get Image under JDK 1.1

Hi all out there!
The following is my problem:
I need to get an image under JDK1.1.
What I want to do is get a graphics-object from
it and draw some stuff onto it. Afterwards I want
to save it to some file (gif, png). The latter part is
no problem. But I couldn't find a concrete subclass
under JDK1.1. I know of BufferedImage in JDK1.2
but that doesn't help too much since I'm restricted
to JDK1.1.
Anyone who can help me with this?
Greetinx
Valentin

hi,
what about Toolkit.getDefaultToolkit().getImage(String)regards

Similar Messages

  • Please help, how to reposition image?

    Hi,
    I am using JWindow instead of JFrame to paint the window border and
    have a problem that I could not paint the image in my designed
    position.
    I have the border from the designer and divided the border in 8 parts,
    4 corners and 4 borders(top, bottom, left, right). Whatever the size
    is, I keep the corner size and using Graphics2D, and AffineTransfrom
    to transfrom the border.
    Here is the code in the paint(g) method.
                   tx = new AffineTransform();
                   scalex = (double)dw/TOP_BORDER.getWidth(this);
                   scaley = (double)TOP_BORDER_HEIGHT/TOP_BORDER.getHeight(this);
                   System.out.println("happy, scalex is " + scalex );
                   System.out.println("happy, scaley is " + scaley );
                   tx.scale(scalex, scaley);
                   tx.translate(VERTICAL_BORDER_WIDTH, 0);
                   g2d.drawImage(TOP_BORDER, tx, this);
    The problem is he TOP_BORDER image always start painted at 0,0 (the
    VERTICAL_BORDER_WIDTH is definitely not 0). I presume the translate is
    the same as setLocation of normal JComponent.
    Please help.
    Thanks in advance for any ideas and input.
    Wing

    hi,
    what about Toolkit.getDefaultToolkit().getImage(String)regards

  • Please Help(How to get RadioButtons in tree View)

    Hi.
    Sub/Requirement: How to implement RadioButtons in tree view with/without using xml file.
    I have a requirement like this i want to display RadioButton in tree view.
    I implemented tree same as which is given in sampleApplications.
    In this sampleApplications they implemted tree by using xml file.
    I also implemented tree by Generating xml file. In this xml file i get the values from the database. I am using <netui:tree > tag.
    Is it possible to implement tree without using xml file. I need to generate tree Dynamically.
    Please any one help me to come out with this solution.

    The issue here is while you are retrieving all the details, you are consistently overwriting them in the request.setAttribute() call before you get to the JSP to display them.
    Do you actually have a class/object called Student?
    That object should have attributes for classes, subjects, teachers (all of which are lists apparently)
    public class Student{
      String name;
      List classes;
      List subjects;
      List teachers;
      // appropriate getter/setter methods
    }Then you load each student, and populate its individual lists.
    That lets you pass the list of students, each student having its own lists for display.
    Hope this helps,
    evnafets

  • I keep getting asked to agreed to the new terms and conditions and can not accept them please help, how to get rid of it?

    I need help please I have my i phone, im setting the icloud and it keeps telling me to accept the new terms and conditions but the page wont populate for me to accept it, im getting annoying with it the pop up us making me crazy plase help.

    Try these...
    1)  Press the Accept Button Twice...
    2)  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Please help how to get return array from rpg program on java code?

    Hi
    I have created a rpg program that returns 2 parameter 1 is the id and another one is list of array, when I called this program I passed two programparameter from my java code (see the code below) but when i checked what value would be return it is returned only first value of array. how will i get all array values ?
    please suggest me regarding this issues I amn't so much aware on java & AS400.
    try
    ProgramParameter[] parmList = new ProgramParameter[2];
    AS400Text p1 = new AS400Text(10);
    AS400Text p2 = new AS400Text(30);
    try
    parmList[0] = new ProgramParameter(10);
    parmList[1] = new ProgramParameter(30);
    parmList[0].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[1].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[0].setInputData(p1.toBytes("Pune"));
    parmList[1].setInputData(p2.toBytes(" "));
    catch(Exception ex)
    ProgramCall pgm = new ProgramCall(o);
    pgm.setProgram("/QSYS.LIB/XXX/XXX.PGM",parmList);
    if (pgm.run())
    byte s[] = parmList[1].getOutputData(); // HERE I got only first value of returning array.
    parmList[1].getOutputDataLength();
    //String sts = ((String) (new AS400Text(10,o).toBytes(s[0])));
    else
    AS400Message[] messageList = pgm.getMessageList();
    for (int msg = 0; msg < messageList.length; msg++) {
    catch(Exception ex)
    AS400Message[] messageList = null;
    finally
    o.disconnectAllServices();
    Reply With Quote

    Try this :
    try
    ProgramParameter[] parmList = new ProgramParameter[2];
    AS400Text p1 = new AS400Text(10);
    AS400Text p2 = new AS400Text(30);
    AS400Array arrP2 = new AS400Array(p2, 4);
    try
    parmList[0] = new ProgramParameter(10);
    parmList[1] = new ProgramParameter(30);
    parmList[0].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[1].setParameterType(ProgramParameter.PASS_BY_REFEREN CE);
    parmList[0].setInputData(p1.toBytes("Pune"));
    parmList[1].setInputData(arrP2.toBytes({"","","",""}));
    catch(Exception ex)
    ProgramCall pgm = new ProgramCall(o);
    pgm.setProgram("/QSYS.LIB/XXX/XXX.PGM",parmList);
    if (pgm.run())
         Object[] objArr =  (Object [])arrP2.toObject( parmList[1].getOutputData() );
         for(int i =0; i<objArr.length;i++){
                System.out.println( " SKU " + i +" : " + objArr.toString());
    else
    AS400Message[] messageList = pgm.getMessageList();
    for (int msg = 0; msg < messageList.length; msg++) {
    catch(Exception ex)
    AS400Message[] messageList = null;
    finally
    o.disconnectAllServices();

  • [PLEASE HELP] How to get Microsoft Outlook Rules to work on my Z10

    Hi, 
    My organization recently started deploying Z10 for work. We use Mircosoft Outlook 2010 and I receive many e-mails throughout the day that I filter by setting up rules. 
    These Outlook rules do not seem to transferr over to my Z10 e-mail account as I am being constantly flooded with these "junk" e-mails. 
    I've tried to change the folder sync settings, but that doesn't seemt to rectify the problem. 
    I have Software Release 10.2.0.429 and OS Version 10.2.0.1803
    Does anyone in this community know about this problem and if there's a solution? 
    Thanks so much. 
    - Kyle 

    DoubleK wrote:
    Hi, 
    My organization recently started deploying Z10 for work. We use Mircosoft Outlook 2010 and I receive many e-mails throughout the day that I filter by setting up rules. 
    These Outlook rules do not seem to transferr over to my Z10 e-mail account as I am being constantly flooded with these "junk" e-mails. 
    I've tried to change the folder sync settings, but that doesn't seemt to rectify the problem. 
    I have Software Release 10.2.0.429 and OS Version 10.2.0.1803
    Does anyone in this community know about this problem and if there's a solution? 
    Thanks so much. 
    - Kyle 
    Unfortunately Outllok rules only work within Outlook itself.
    One way that I have found to partially work is to use the IMAP server (if available in your organisation) from both the computer and the device(s), and to keep Outlook running while you are gone, and then the rules works for most of them
    Using the Playbook and the Z10 and the Z30 and loving them
    Martin

  • Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    There are a number of OS X apps, many free, that will save your messages, allowing to view and print them. 
    http://www.softwarebbs.com/wiki/How_to_transfer_SMS_from_iPhone_to_Mac,_backup_i Phone_SMS_message_on_Mac
    Google, for other options
    Your "other" of 6 GB may include corrupted data or file sytem errors. If after removing the messages there is still >2GB, you will need to restore the phone in iTunes, first using a backup (made after deleting the messages) and if needed as a new iPhone.
    iTunes: Restoring iOS software

  • For updation of IOS 7.1.1 passcode required,I forget my passcode please help how can I get my passcode

    Hello,
    I forget my passcode please help how can I get my it

    You will need to try to restore your iPad from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try Recovery Mode.
    Read this: http://support.apple.com/kb/ht1808
    Follow the instructions very carefully.

  • I have iOS 6 on my iPhone. i have linked my contacts with facebook and yahoo, which has doubled or triplicated some of the contacts. how can i integrate them into one? please help. it is getting on my nerves. thanks :)

    I have iOS 6 on my iPhone. i have linked my contacts with facebook and yahoo, which has doubled or triplicated some of the contacts. how can i integrate them into one? please help. it is getting on my nerves. thanks

    click on the contact which you want to integrate, click the edit button scroll down u will find a option called link contacts use it to link it to the duplicate contact

  • Hi, would you please help me to get red of hips of emails that I am receiving from this site? I want to delete my profile. How can I do it?

    Hi, would you please help me to get red of hips of emails that I am receiving from this site? I want to delete my profile. How can I do it?

    Read Frank Caggiano's User Tip here: Stopping emails from ASC

  • HT3630 How to creat an app-enabled accessories for iPhone? Please help me to get an answer..

    How to creat an app-enabled accessories for iPhone? Please help me to get an answer..

    To get hardware interfaces and API's via hardware you
    need to join the MFi program.  That info is here:
    https://developer.apple.com/programs/mfi/
    To get the additional software to be able to download
    and test code on any iDevice, you must join the
    iOS Developer Program.  That info is here:
    https://developer.apple.com/programs/ios/
    Both programs require fees and NDA agreements,
    especially hardware as most vendors that supply
    components development tools will not sell you any
    of their tools unless you are a member of the MFi
    program.

  • My ipad2 is asking old id password, when i go to forget password link for that id then I am not getting any mail to reset the same. Please help how can i remove or change the old id.

    my ipad2 is asking old id password, when i go to forget password link for that id then I am not getting any mail to reset the same. Please help how can i remove or change the old id.

    You cannot remove or change the old ID. This is Find My iPhone Activation Lock. You need to recover the credentials for the Apple ID originally used to activate the iPad.
    Check your spam and junk folders.

  • How to get image RGB/16???????? (cont)

    VRect currentRect;
    int32 progressTotal = tilesVert * tilesHoriz;
    int32 progressDone = 0;
    // process each tile in order
    currentRect.top = 0;
    currentRect.left = 0;
    currentRect.bottom = tileHeight;
    currentRect.right = tileWidth;
    // don't go past the document bounds
    if (currentRect.bottom > docHeight)
    currentRect.bottom = docHeight;
    if (currentRect.right > docWidth)
    currentRect.right = docWidth;
    pixelMemoryDesc.rowBits = (currentRect.right - currentRect.left) *
    readChannelDesc->depth;
    // read
    while(readChannelDesc != NULL)
    bigError = sPSChannelProcs->ReadPixelsFromLevel(
    readChannelDesc->port, 0, &currentRect, &pixelMemoryDesc);
    if (bigError)
    error = filterBadParameters;
    throw(this);
    unsigned char *imageData;// for image RGB/8, with RGB/16 is unsigned short
    long temp = tileHeight * tileWidth * readChannelDesc->depth/8;
    imageData = new unsigned char[temp];// for image RGB/8, with RGB/16 is unsigned short
    memcpy(imageData, pixelMemoryDesc.data, temp);
    FILE *file;
    file = fopen("C:\\abc.txt", "ab");
    if(file == NULL)
    return;
    fwrite(imageData, sizeof(unsigned char), temp, file);// for image RGB/8, with RGB/16 is unsigned short
    fclose(file);
    readChannelDesc = readChannelDesc->next;
    return;
    ////end of customizing/////
    - then we use a project to read "abc.txt" to get image:
    ////////// function of button that is clicked, the image is shown
    void CPixelDlg::OnBtnSetPixel()
    // TODO: Add your control notification handler code here
    // POINT point;
    unsigned char*memblock;// for image RGB/8, with RGB/16 is unsigned short
    memblock = new unsigned char[HEIGH * WIDTH *3];// HEIGH , WIDTH is assigned by hard code// for image RGB/8, with RGB/16 is unsigned short
    FILE *file;
    file = fopen("C:\\abc.txt", "rb");
    if( file == NULL)
    return;
    else
    fread(memblock, sizeof(unsigned char), HEIGH * WIDTH *3, file);// for image RGB/8, with RGB/16 is unsigned short
    fclose(file);
    CClientDC dc(this);
    int i = 0;
    int j=0;
    int k = 0;
    for( i = 0; i < WIDTH; i++)
    for( j = 0; j < HEIGH; j++)
    if (k>WIDTH*HEIGH*3-3)
    break;
    dc.SetPixel(j, i, RGB(memblock[k],memblock[k+WIDTH*HEIGH],memblock[k+2*WIDTH*HEIGH]));
    k+=1;
    2. that code is ok for Image RGB/8. But with image RGB/16, now we don't know how Photoshop stores image data, and how to get image data to show???
    Please help me?
    Thanks,

    Use ResultSet.getBinaryStream()

  • Hi, please help my other daughter her ipod touch is disabled connect to itunes after say its itunes couldnt connect to the ipod touch coz its is locked with a passcode?? please help how...

    hi, my daughter hers ipod touch is disabled connect to itunes after say its itunes couldnot connect to the "ipod touch" because its is locked with a passcode please help how to fix connect...i did turn off her ipod touch put usb back on there same in doenot say still ipod is disabled i dont understand please help how???

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?

    Programming help - how to get the read-only state of PDF file is windows explorer preview is ON?
    I'm developing an application where a file is need to be saved as pdf. But, if there is already a pdf file with same name in the specified directory, I wish to overwrite it. And in the overwrite case, read-only files should not be overwritten. If the duplicate(old) file is opened in windows (Win7) explorer preview, it is write protected. So, it should not be overwritten. I tried to get the '
    FILE_ATTRIBUTE_READONLY' using MS API 'GetFileAttributes', but it didn't succeed. How Adobe marks the file as read-only for preview? Do I need to check some other attribute of the file?
    Thanks!

    Divya - I have done it in the past following these documents. Please read it and try it it will work.
    Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement) 
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
    thanks!
    Jason PV

Maybe you are looking for

  • Desktop Manager crashes upon connection

    Just installed BB Desktop Manager 5.0, after removing the previous installation using the "clean uninstall" process suggested elsewhere on this Board (i.e. eliminating RIM and Puma entries in the registry). v 5.0 is syncing with my BB 8830 just fine

  • Java Programming -- Can't Beat It!

    Is it true that the Java Programming language, with its "Write Once, Run Anywhere" promise, allows developers to easily write powerful code that can be run on any platform? Is there any other programming language that can make such a promise?

  • Final Cut Pro start up

    hi I dont know the tech speak but basically I have been working on a project in Final Cut Pro 5 for the last few months and it's all been going smoothly. Then today, I tried to open it and it brings up the loading screen (where it says who it's licen

  • Python docs very off-putting

    This isn't just a rant, don't worry So, I haven't been coding anything serious in quite a while... this makes me sad. I thought, okay, I'll mess around with one of the more newfangled languages and get active in programming once more. Python seemed t

  • Color faded in photoshop (CS3 Windows)

    Hi all, Recently when I open an image or graphic in photoshop the color all looks faded. I've checked and its not CMYK color mode - but it looks like it. When i go to save the image though (e.g. Save for Web) the color is normal again? Not sure what