Size of Image

hi im trying to draw a picture on my panel with a fct name JP. TRaht work eprfectly, but i want the size of the Image (name ball) because now im adding my picture with the size 200,200, but its to big, and the picture could change each time the suer run the application, so maybe its easy, but i want to find the size of the picture, he have no fct getWidth or variable width for the image!!! i want height too.
i get the picture from a paramater taht i pass to my applet..
thx to help me... maybe its stupid, but i tried to find fct for that
try
    paramCheminImage = getParameter("cheminImage");
    URL url = new URL(paramCheminImage);
    ball = Toolkit.getDefaultToolkit().createImage(url);
    dessin.add(new JP(8, 0, 0, 200, 200), 0);
    image = true;
    repaint();
catch(Exception e)
    System.out.println(e.getMessage());
}

oups sorry i forgot some times taht my code is clear for me, and not for other taht doesnt see my program
paramCheminImage is the url where my image is
i get it from a parametr i pass in my applet (cheminImage)
ball is my image taht i create with the url i got from the paramater
after i use a fct that the image to component that to my frame dessin
8 is the type of adding (use in my fct), 0 is the x, 0 is the y, and 200,200 is width and height
image is a boolean i sue in my fct JP
and i repaint to see the change
all this work perfectly, but i want at place of 200,200, the real size of the image i had recuperate from the url
wish that explain you my program
thx

Similar Messages

  • Low File Size/Great Image Quality: H.264, AAC

    1. I created a slideshow in iPhoto, exported it to a QT movie file. The properties of it is as follows:
    Exibit A:
    Dimensions: 720x480
    Format: MPEG-4 Video, AAC, Stereo, 44.100kHz
    FPS: 30
    Data Rate: 7277.87 kbits/sec
    Channel Count: 2
    Duration: 02'46
    Size: 143.58MB
    2. I pulled a QT Movie file from the web with the following properties:
    Exibit B:
    Dimensions: 480x360
    Format: AAC, H.264, Stereo (LR), 48.000kHz
    FPS: 28.79
    Channel Count: 2
    Duration: 01'22
    Data Rate: 868.14 kbits/sec
    Size: 8.5MB
    3. I tried to see if I could compress my movie and keep the quality as comparible to Exibit B. Here's what I ended up with:
    Exibit C:
    Dimensions: 720x480
    Format: AAC, H.264, Stereo (LR), 44.100kHz
    FPS: 30
    Data Rate: 4826.73 kbits/sec
    Channel Count: 2
    Duration: 02'46
    Size: 95.22MB
    4. I tried again. This time creating the same dimension as Exibit B. Here what I got:
    Exibit D:
    Dimensions: 480x360
    Format: AAC, H.264, Stereo (LR), 44.100 kHz
    FPS: 30
    Data Rate: 2577.17 kbits/sec
    Channel Count: 2
    Duration: 02'46
    Size: 51MB
    How can I create a very low size and image quality as Exibit B?
    I have QTPro. Do I need something else?
    Thanks.

    Update:
    Well playing all exibits on the Windows workstation worked just fine after the update. I now has QT7.
    Next...I've exported Exibit A down to 8MB (Exitbit F)by recommendations from Capt. QTKirk. Here are the properties:
    Exibit F:
    Format: AAC, Stereo (LR), 32.000kHz, H.264, 720x480, Millions
    FPS: 15
    Data Size: 8.5MB
    Data Rate: 429.79kbits/sec
    Overall Quality:
    Video: Fair at 720x480; much better at 486x324; overall choppy transitions as well
    Audio: Fair -close to mono.
    Anyone else have any suggestions?
    How and what are others using to get the audio/video quality as crisp and sharp as what's shown in the QT Movie Trailer site?

  • Size of image is getting increased

    Hi
    I have cross compiled BDB using m68k-elf toolchain.
    I'm using motorola coldfire processor with uClinux for our development purpose. Now I need to include BDB into uClinux and flash it into our processor. The flash we are using is 4mb. The image I have built (without BDB) was around 1.3MB. But if I include BDB libraries and make the image, the size of image is 11MB. How can I come out of this problem
    After i cross compiled BDB, I have taken the library files created ( libdb.a, libdb-4.5.a ) into romfs/lib and binary files (db_archive, db_dump,db_load.........) into romfs/bin of uClinux distribution and made the image.
    I fell that it is not the right process but dont have any idea how to go with. Image size should be less. Can anyone help me
    Thanks inadvance
    elizabeth

    Hi Elizabeth,
    Another possible cause of your problem is that you are building static libraries. Each time you link against a static library (in this case the Berkeley DB library for each utility), the footprint of the library is added to the size of the application being built.
    You should probably configure Berkeley DB with the "--enable-shared --disable-static" flags. That will generate libdb*.so files not libdb*.a files, and the resulting utilities should be significantly smaller.
    Information on static libraries here:
    http://www.linux.com/howtos/Program-Library-HOWTO/static-libraries.shtml
    Information on shared libraries here:
    http://www.linux.com/howtos/Program-Library-HOWTO/shared-libraries.shtml
    Regards,
    Alex

  • How to reduce size of image while uploading it in livecycle pdf.

    Hi,
    I have created a pdf with Image field using live cycle designer.
    I have selected "Sizing: Scale Image to fit Rectangle".
    Now the problem is the pdf which i have created is 1.5MB and if i import or upload a 2.5MB image in image field then the size of pdf becomes 6MB.
    I have around 20 image fields in my pdf report , so if people keep uploading high resolution images in the pdf then the pdf becomes more then 15MB, slow and unmanagable.
    Is there any way by which even if I upload a 5MB image the it should automatically reduce image size?
    As the users does not bother to reduce the size of image they just upload high resolution and large size image in pdf.
    Please tell me the way through which i can reduce the image size automatically while uploading.
    Regards,
    Kartik Shrivastava

    Hi Prashat
    I tried by reducing the size of container , But scroll bars appears automatically .
    The size of Picture remains same .
    Please tell me if there is any option to fix the size of container ... so that picture reduces its size automatically .
    Thanks & Regards
    Shaveta

  • Changing the size of images displayed when a thumbnail is clicked

    In an Aperture gallery, how do I change the size an image is displayed when a thumbnail is clicked. There are sliders for changing the size of the thumbnail; I can't find an adjustment anywhere for the size an image is displayed when the curved arrow in the upper left hand corner is clicked.
    Help!
    --Kenoli

    Hi Kenoli,
    In an Aperture gallery, how do I change the size an image is displayed when a thumbnail is clicked.
    Do you mean "double-clicked"? In "Browser" mode, when I click on a photo, nothing changes. However, when I double-click on a photo, it switches to "Viewer" mode.
    However, I'm missing the curved arrow that you mention. I can't find any photos with a curved arrow over them in any mode. In fact, the only overlays are the badges in the lower right.
    Can you be a little more specific about exactly what mode you are in?
    nathan

  • How can i reduce the size of Images  in MIDlet

    Hi all,
    How can i reduce the size of Images in Form,bcoz they are covering lots of spaces in form due to that other items are not displaying in specific order.
    Best regrads
    karan

    Better you can use Canvas class and using drawImage() function you can show the image. Before that you have to Get the maximum size of your phone screen using the following:
    x = (width/2) - (image.getWidth()/2);
    y = (height/2) - (image.getHeight()/2);

  • How can I re-size multiple images in PSE11 ?

    I have used PSE10 to re-size multiple images by selecting the 'Process Multiple Images' option from the drop-down menu undeneath 'File'.
    I have just migrated to PSE11 and this option is not available - it is greyed out and cannot be selected.
    Anyone got any suggestions ? Thanks.

    In PSE 11 you must be in Expert mode (the equivalent of Full Edit in previous versions). Click the word Expert at the top of your screen and it should be available.

  • I'm doing a photo montage.if the size of image is too big like 3mb per pic

    i'm doing a photo montage.if the size of image is too big like 3mb per pic, will it make the rendering too slow ?

    File size has nothing to do with rendering performance. Search the forum, there's tons of threads on this. and by all means, read some basics:
    Getting started with After Effects
    Mylenium

  • HOW DO YOU SIZE AN IMAGE TO A SPECIFIC WIDTH AND HEIGHT ?

    I need to size an image to 851 X 315, as recommended by Facebook to fit into the Timeline, but when I type 851 in the width,  the Height goes to 532.
    the problem is when I change the height to 315, the length is reduced again, which is not supposed to.
    Should I unlink them and how?  And would that cause distortions? thanks

    set the crop tool to restrain to 851 x 315
    Since your image is not proportional to that dimension, you will have to crop part of it out.

  • Changing size of image in ACR mode

    Have just bought Elements 12. When editing image in raw mode I cannot change size of image using ALT in combination with the mouse scroll  button like I could in Elements 8. Clicking plus and minus signs is clumsy and slower

    I believe that was removed in acr starting with the late 6.x or 7.x series and not sure why.
    One way to zoom quicker with the zoom in (plus) is to drag a box on the image, although that doesn't work for zooming out (minus).
    You can also right click on the image to get a menu with different zoom values (viewing percents).

  • How to reduce size of image without loss quality

    I am website developer design a website http://www.ritikakaur.com/ in wordpress php i am new in photoshop and i want to use some image plz suggest me how can i reduce size of image without loss of image quality.

    Which file formats are eligible for your purposes?
    non-destructive compression has limits, so you may have to compromise.

  • How to reduce size of image in Selection Screen

    Hi all
    I am trying to add an image in Selection screen and i want to reduce size of image .
    Please help me asap.
    Thanks & Regards
    Shaveta

    Hi Prashat
    I tried by reducing the size of container , But scroll bars appears automatically .
    The size of Picture remains same .
    Please tell me if there is any option to fix the size of container ... so that picture reduces its size automatically .
    Thanks & Regards
    Shaveta

  • Right-click - "Reset Size" for images broken

    If I create an image and insert it onto the page, then go back and re-size the image in Photoshop, come back to the page and right click on the image I can choose "reset size" which used to correct the height and width of the image to the new size.
    Now, with CC 2014.1 when I try it, it deletes the width entirely from the code and doesn't change the height at all.
    This is broken!

    File a bug report where it will be logged and seen by the engineers.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Nancy O.

  • How to adjust the size of image to suit the size of panel?

    i have got a panel which contains a image.but i don't want to use scroll panel if the image's size is bigger than the panel.
    what can i do to change the size of image to suit the size of the panel every time i want to display it?
    thanks

    Reply 3 of this thread should be able to help you:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=286424

  • What size still images work best for iMovie to create a book trailer?

    I'm trying to create a book trailer using still images and text in iMovie. I purchased some 280px images from gettyimage and find they are too small. When viewed on a full screen the images are degraded. What size still image works best to make a book trailer in iMovie that will be posted on You Tube. Thanks in advance. I am an iMovie newbie.

    iM supports a max. export resolution of 1920x1080 pixel ..
    if you need to add Ken Burns effects, res should be, of course, higher..
    no such thing as 'dpi' with video, only absolute pixels count ..
    due to the many conversion processes happening on import, processing and export, care for as less compression as possible for the imported files ..
    this YT-demo is done in iM09 with some pics from my Lib, native res of originals is ~6Mpix/~3MB size/jpegs ..
    ahh, and Welcome betinski61 to the  iM boards ...

  • Re-size an image in using the Image class?

    Is there a way to resize an image using the com.day.cq.wcm.foundation.Image class?  I wanted to extend the foundation image componet and have it resize to a specific height and width.  Is there a way to change the size of the image before you call image.draw(out) ?

    You also don't want to insert you resizing efforts prior to calling the image.draw method. The draw method doesn't actually render the image,  it draws the HTML img tag that your components print out. If you were to use the ImageHelper to get the layer and resize it that would not actually change the size of the image.
    Now that img tag will contain a URL to the image, and that URL will generally look something like this (unless you have customized your image components):
    /path/to/your/page/_jcr_content/par/textimage/image.img.jpg/1323947520848.jpg
    This URL is going to trigger a script or servlet that will be responsible for rendering the image. In the example above because the textimage component extends the parbase component and because URL includes the img selector it will end up triggering the servlet at /libs/foundation/components/parbase/img.GET.java. If you go into CRXDE Lite you can go to this file and look at the source code of this servlet and see an example of how it uses the layer to resize the image if that author edited the image in the smart image widget.
    You can also see example of servlets that resize and image ot specific preset sizes (as you want to do) you can look at /apps/geometrixx-outdoors/components/product/image/thumbnail.GET.java and /apps/geometrixx-outdoors/components/product/image/nav.GET.java.
    So what you would want to do is something like this:
    Create your own component at /apps/mysite/components/foo
    Create a servlet at /apps/mysite/components/foo/bar.GET.java - put your logic to resize the image here based on some of the examples
    Create your component JSP at /apps/mysite/components/foo/foo.jsp
    Create your component's dialog and in this dialog include a smart image widget - make sure you store your image on component node, not a sub-node. If you store your image on a sub-node you need to make sure the sub-node includes the same resource type as your main node).
    In your component JSP when you create your foundation Image object make sure to image.setSelector("bar") before you call image.draw()
    That should result in an image URL that looks like /path/to/your/page/_jcr_content/par/textimage/image.bar.jpg/1323947520848.jpg
    Those steps aren't tested - so I may have missed something or mistyped something, but it should point you in the right direction.

Maybe you are looking for

  • Lost audio after Vista upgrade on a Satellite Pro A120 PSAC1E

    Hello, I've just upgrade to vista and i've lost my audio. I've tried all the latest drives, still no luck. The pc says the driver is installed and the device is working correctly but i cant hear nothing. Volume is 100% also. Any ideas?

  • ICloud storage refund for iTunes gift card.

    Hello, my payment method for my Apple ID is gif cards, i had the 20$/year subscription to give me total of 15GB of storage and i recently upgraded to the 40$/year by mistake and i downgraded the plan to the 20$/year again but it said it will take eff

  • Suggestion​: General Discussion​s\Off Topic Section

    hi, it would be great to have an off topic forum/section here for us to interact and have general discussions. almost every forum i'm a member of has an Off Topic section. we can get to know each other much better and share useful information and opi

  • Transaction code to know stock lying in quality inspection(for UD)

    Hi, Pl let me know transaction code to know stock agaisnt materials lying under quality inspection ( for UD ) for more than one materials or plant wise or pgrp wise or sloc wise .... Thanks Arul Murugan

  • Multi table insert in ODI

    Hello, Does ODI allow using multi table insert feature? For example INSERT FIRST WHEN expr THEN INTO ... WHEN expr THEN INTO .. SELECT .. FROM ... WHERE ... I could build my own LKM but I can't define appropriate Meta Model. In an interface ODI allow