Iconized image size

From: Fred L. Kleinschmidt (fred.l.kleinschmidt_at_nospam_boeing.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 19:42:49 GMT

How can I determine the size (maximum size and minimum size) of the icon
displayed when a Frame is iconized?

Most Unix window managers use 50x50 pixels, while PC's typically use
16x16.

My goal is to periodically update the image used in the iconized state.
Since some images do not scale very well, it is best to draw the image
in its correct size - but how to find that size?

I can use f.setIconImage(null) to specify the default icon, but a
subsequent call to f.getIconImage() still returns null, not the default
Image, so I cannot interrogate its size.

-- 
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94  (206)544-5225


Relevant Pages

  • Re: Questions on GS/OS Icon ($CA) files
    ... this area of IIgs programming) but my functioning IIgs is at work (where ... Most IIgs icon files are created with an icon editor application running ... pixels are encoded. ... palette rather than RGB values. ...
    (comp.sys.apple2)
  • Re: Icons in VS .net 2002
    ... These may be the colors shown for transparent areas (which, ... I could look at an icon if you wanted to provide one ... transparent pixels to be. ... on the screen in the Visual Studio icon resource editor. ...
    (microsoft.public.vc.mfc)
  • Re: how to draw an notify icon?
    ... transparent pixels. ... Answer those GDI+ questions with the GDI+ FAQ ... > i am drawing a notify icon. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: redraw pictureboxes in image????
    ... on the size of the container but I need some help. ... its left and the right icon at 3/4 of its left. ... I don't know what sort of sizes you envisage for the container, but taking an example of a container that is 200 pixels wide, you've already said that you want one image to be 40 pixels wide and the other to be about 26 pixels or 28 pixels wide. ... Also, when you look at the maximum size of the Labels, which are of necessity centralised horizontally beneath beneath each image, in order for them to be properly centred and also to not overlap the central point of the "approximately middle" space, the Label beneath the large image cannot be wider than 72 pixels and the Label beneath the small image cannot be wider than 60 pixels, severely restricting their usefulness and further reinforcing the waste of valuable "real estate" at the left and right sides of the container. ...
    (microsoft.public.vb.general.discussion)
  • Graphic and frame grabbing in Java
    ... I'd like to grab a section ... of screen, let's say 100x60 pixels. ... The icon embedded in the 100x60 section is identical pixel per pixel ... Marcin Kolbuszewski ...
    (comp.lang.java.developer)