Unknown size of image

Hi
I am receiving an image trough a network connection. The image comes in packages containing the RGB's for one line at the time. The height and size of the image is unknown until the last package is received.
Each package (image line) received, shall immediately be drawn to screen. So the user can see the image building up line by line.
1. How do I create an image without knowing the final height of it?
2. How can I draw this image line by line (or pixel by pixel)?
thanks in advance!
olzen

1) I don't think it's possible
2) One way is looping and drawing each pixel with a graphics.drawLine(x,y,x,y) (which is damn slow). Another one is making a class that implements ImageProducer, make an image of it and draw it.
Do you eventually get to know the height or width of the image? 'cause otherwise you cannot know how wide lines it will have...

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);

  • Empty array of unknown size in formula node

    I have to declare an empty array say, P of unknown size in formula node. How to do that?

    Hi sukhiray,
    an empty array has a known size...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 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

Maybe you are looking for