How to detect the size in pixels or percentage of a scrolling area?

Hello there!
I'm working capturing scrolling images and found a problem when I try it in another laptop, the thing was the resolution because in mine the scrolled area is added to the principal image and as I go down I merge the scrolling. But in other machines the image appears wrong, with the browser status bar in every scroll.
Can somebody help or give me some other address where I could find something useful?
Thank you in advance.

So you have some sort browser with a scrolable view. As scrolling is preformed you add the newly revealed area to an an image. As more area is revealed, the image is made larger to paint the new area in addition to the old area. Ideally when the whole view has been looked at and scrolled through, then the image reflects the entirety of the view. The problem is, on one particular laptop when the user scrolls, the status bar keeps appearing as part of the newly added area, so you end up with an image of the view along with a bunch of status bars painted in various places of the image.
Am I correct so far?
If so, then I guess the question is are we even dealing with Swing components? Why can't you just call
myScrollPane.getViewport().getView();and paint that?

Similar Messages

  • How to detect the size of an image

    Hi,
    I have a servlet which grabs an image (jpg or gif) from a BLOB stored in my database and sents the image back to the client through the ServletOutputStream. This all works good and the image is presented nicely. However, I now want to have my servlet detect the size of the image, and if it is too big resize the image and return it.
    As I am new to images in JAVA I am unsure how to do this and what tools to use for it. I found some information on JAI, but this seems way to elaborate for what I need. Please let me know if anyone knows how to do this.
    Thank you and regards,
    Joost Schouten

    This code figures out the size of any object in bytes. I am not sure about resizing the image though..
    public int getSerializedSize(Object object)
           try
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              ObjectOutputStream oos = new ObjectOutputStream(baos);
              oos.writeObject(object);
              byte[] bytes = baos.toByteArray();
              oos.close();
              baos.close();
              return bytes.length;
           catch(Exception e) //not good
              e.printStackTrace();
           return -1;
         }Rishi

  • How to determine the size (in pixels) of the current mode

    Hello.
    I am looking for a was to determine the size (horizontal and vertical pixels) of the current mode (SAPGUI window). I have already looked through the methods provided by class CL_GUI_CFW...
    CL_GUI_CFW=>GET_METRIC_FACTORS provides the size of you display (i.e. 1600 x 1200 pixels) and some other information I am not able to interprete.
    Futhermore I have had a look at the Methods CL_GUI_CFW=>COMPUTEPIXEL, but I don´t know how to use them.
    Has anybody of you any experiences in this topic? I would be grateful ...
    MIKE

    Sorry Manoj,
    but i didn´t find out, why these programs should be able to solve my issue. They just display a picture using the CL_GUI_PICTURE control.
    I am looking fo a way to resize a given control to the very maximum, so that it fills the whole SAPGUI window!
    Thanks anyway...
    MIKE

  • For the life of me, I can't find out what size a photo is in terms of inches or how to change the size of the photo[s] so I can print them. I think I read somewhere to click edit, then click adjust. Nothing there about sizing.

    For the life of me, I can't find out what size a photo is in terms of inches or how to change the size of the photo[s] so I can print them. I think I read somewhere to click edit, then click adjust. I don't see anything about re-sizing when I click the adjust tab: only saturation and tint levels. Thank you.

    With respect to digital images, there really is no size in inches. The size is given as number of pixels horizontally and vertically. In iPhoto '09 you click the little "i" inthe lower right side of the window and it will display information related to the selected photo, including the pixel dimensions. I do not have iPhoto '11 installed so I don't know if it is the same there.
    In some applications, such as preview, it has something additional called Dots per Inch (DPI) which you would think would allow you to convert the pixel dimensions to inches. It is not a real thing, though. The DPI is determined by how large or small you have chosen to print your photo and the capabilities of your printer. 
    There is also something called Aspect Ratio, which is usually expressed in inches x inches such as 6x9 but that doesn't mean the size on the screen or when printed is 6x9.  It is the ratio of the pixel dimensions.  When cropping your photos, you will have several standard aspect ratios to choose from plus any custom ones you create.
    In iPhoto '09, after you choose Print, in the Print Setting window are the settings for the size you want the photo printed. You want to shoose a setting with the same aspect ratio of your photo. Otherwise, iPhoto will resize and/or crop your photo to fit the size you have chosen. 

  • How to measure the size of a string

    windows app store how to measure the size of a string?
    string str = "Hello word windows app store";

    if you need the actual width the string occupies in pixels than use (see
    this MSDN link for more details):
    Graphics.MeasureString(String, Font)
    if you only need the "length" of the string i.e. no. of characters than use (see
    this MSDN link for more details):
    str.Length
    dont forget to bing / google :)
    hope this helps!
    Graphics.MeasureString(String, Font) can not use in windows store app.
    TextBlock has Measure()
    method, as following:
    Size MeasureString(string content, Size availableSize, double fontSize, string fontFamily="Segoe UI")
        TextBlock tb = new TextBlock();
        tb.TextWrapping = TextWrapping.Wrap;
        tb.Text = content;
        tb.FontFamily = new Windows.UI.Xaml.Media.FontFamily(fontFamily);
        tb.FontSize = fontSize;
        tb.Measure(availableSize);
        return tb.DesiredSize;
    Test:
    string str = "Hello word windows app store";
    Size size = MeasureString(str, new Size(800, 600), 40);

  • HELP !!! How to check the size of an object in Photoshop ?

    Hello,
    I'm using Photoshop CS 3 to design a website. I used several shapes such as rectangle, line or ellipse of different size. Probably it is a stupid question but I don't know how to check the size of an existing rectangle. I tried free transform tool that selects my rectangle but doesn't show its size. Then I made a selection with rectangular marquee tool but I see nowhere the size of the selected area.
    If you know the name of such a tool please help me !
    Have a nice day !

    Web images are all pixels. View at 100% at pixel view. that is your exact size

  • How to decrease the size of an image (CS5)?

    I need help with how to reduce the size of an image to fit various smaller sizes.  E.g. 135 x 380mm, 254 x254mm etc mounted/matted. Therefore, the image must be made smaller than these sizes without losing quality and any part of the image. I am unable to crop to achieve these sizes since I need the full image. These photos were taken by using a Canon D450 camera and in both RAW & JPEG.
    Your help is much appreciated.

    You may want to use Image > Image size... and dial in the sizes you want.
    Set your units to mm in the dialog. Turn off resample and you can adjust the final print size.
    What I am showing you is called "scaling", changing the print size without throwing out pixels as resample would do. Your image is  intact. This is from CS6, but it should be about the same in CS5.
    Gene

  • Does any body knows how to detect the resolution of an inserted image in word?

    Does any body knows how to detect the resolution of an inserted image in word?

    I'm not sure I understand your reply but when you insert images into Word that are larger than will fit on the page, they are automatically compressed. If you right click and select Size and Position you can restore it to 100% but you will not see all the image.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How to reduce the size of my pdf X3:2002 for online printing

    Hello Adobe,
    I have been creating a photobook (33 x 28 cm) with my photo editing software.
    The problem is, that I've got a PDF X3 2002 with around 7 GB and the online printing office accepts only 2 GB.
    What can I do, how can I reduce this large pdf in 2 GB?  I'm working with Acrobat X Pro.
    Thanks for your help,
    Best,
    Andrea

    You are sending public messages, don't worry about that. It's working fine. Now, rather than trying to share screen shots and send PDFs, please focus on answering ALL of my questions. Thanks. I will recap. If any of the questions don't make sense, just say so. We need to stay focussed, not go off on a tangent.
    - the size in pixels and inches (or mm) for your photos.
    - what app you use for layout
    - What is the EFFECTIVE resolution you are using for your images (not the original ppi, but adjusted for layout size)?
    - How are you making up the pages?
    - How do you make the PDF? -
    - What PDF compression settings are you using?

  • How to initilize the size of rows in an jtable in run time

    i am trying to retrieve data from a oracle database and display them in an jtable ,but i could not figure out how to increase the size of the table based on the number of records fetched in runtime. i also want to add checkbox for each enrty made in the jtable such that by cheching the box ,i could select the data and process it in futher frames. i use an netbean5 version for design.kindly give me giudence.

    Best thing to do is write your own table model and a Cell Renderer for the check box.
    Please follow the "How to use tables" tutorial.
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to restrict the size of folder in KM?

    Hi All,
    How to restrict the size of folder in KM?
    Suppose I allocated 1 personal folder to every SAP KM Folder. Can I restrict the size of folder with do not allowed the uploaded file to be exceeded certain capacity?
    Thanks & Regards,
    zhixuen.

    Hi,
    Refer this [http://help.sap.com/saphelp_nw70/helpdata/en/62/468698a8e611d5993600508b6b8b11/content.htm]
    Also chk.
    https://forums.sdn.sap.com/thread.jspa?threadID=80571
    https://forums.sdn.sap.com/thread.jspa?threadID=80326
    https://forums.sdn.sap.com/thread.jspa?threadID=80145
    http://weblogs.sdn.sap.com/pub/wlg/3219
    Regards
    Baby

  • How to change the size of control´s prompt?

    No matter the size of data to be displayed in the view suface prompt, the controls have the same size.
    Does anyone here know how to change the size of control in surface prompt?

    HI,
    In order to change the size of a radio button... one way you may consider is to Customise the Radio Button.
    Place a Radio Button (RB) on the FP of a VI, Right-Click the RB > Advanced > Customise...
    Click the Mode Button (most Left button) for Edit Mode
    Right-click the radio button (the round image) now, you will see a list of actions i.e. Copy to clipboard, import picture ...You will see Four images under the 'Picture Item', those are the images that you will need to replace.
    Prepare Four Images of the similar but larger expected size
    *** Copy the 1st new image to clipboard. Back to the Picture Item and select 1st image. Then, select Import Picture (to replace the existing image)
    Repeat *** for all four images.
    Once done, change the mode back to original. Save the *.ctl
    You are now ready to use the customised radio button!
    Quick sample attached (sorry for the poor images created )
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    IFK_RButton_Large.ctl ‏11 KB

  • How to change the size of the titel of  a picture in a diashow

    please answer the question.
    how to change the size and the possition of the titel of  a picture in a diashow

    You need to select it.  Copy that selection to a new layer, and use Free Transform to resize it.
    http://www.youtube.com/watch?v=qWpAGmwhllQ
    http://www.youtube.com/watch?v=Bi4jJnYLkUA

  • How to Change the Size of the Parameter Form in Report6i

    hi
    Does any one know how to change the size of the "PARAMETER FORM" in Report6i.

    Hi,
    You can change it in the "Parameter Form Window" property of the Report Object.
    In the object navigator, select the Report object and open its property palette. Under "Parameter Form Window" you can change the "width" and "height" properties.
    Regards,
    Siva B

  • How to change the size of a particular object in the picture?

    How to change the size of a particular object in the picture?

    You need to select it.  Copy that selection to a new layer, and use Free Transform to resize it.
    http://www.youtube.com/watch?v=qWpAGmwhllQ
    http://www.youtube.com/watch?v=Bi4jJnYLkUA

Maybe you are looking for

  • [SOLVED] keyboard layout no longer exists?

    Hi there, I noticed my keyboard layout switched back from azerty to qwerty. Also, latest upgrade shows my keyboard layout can't be opened upgrading linux [##################################################################] 100% >>> Updating module de

  • Every time I charge my shuffle, my songs get deleted

    I have a first gen shuffle, every time I plug it into my comp's USB, the songs on my shuffle get deleted. It blinks orange, green, orange, green... So I have to rechoose all my songs onto my shuffle. How can I get it so that I don't have to do this e

  • Com.sap.portal.prt.sapj2ee.error

    Hi, When i run "startsap" on our Portal CI, i see the following error message in: std_server0.out Mar 15, 2008 8:40:51 AM          com.sap.portal.prt.sapj2ee.error [SAPEngine_Application_Thread[impl:3]_34] Fatal: Exception during reference registrati

  • Power PC G5-needs help!!!!!

    I am running 10.3.9 system software with 512MB ram. It is the model with all the hardware in the monitor (19" I think) , it has no tower. I cannot install the new snow leopard system software or updates to several software programs including safari.

  • Urgent Please - Download Jdev 9i with OAF Extensions

    Hi all, I need to download Jdeveloper 9i with OAF Extensions. Our environments run on OA Framework 11.5.10.7RUP Oracle Applications Extension 9.0.3.8.13 - build 1570 Can somebody please provide me the link to download. This is urgent. Please help asa