Really easy Graphics2D question



Hi all,

I've drawn an image using Graphics2D, but I need to use it as an Icon.

How can I do this? I've currently got the image as a BufferedImage, but I
can't work out how to get this to be an Icon object.

Thanks for your help

Regards

Michael


.



Relevant Pages

  • ImageList_Draw and icons with alpha channel
    ... I'm creating a memory DC which is compatible to the desktop's DC. ... the background color to GetSysColorand the text color ... The next thing I do is draw an icon into that DC using ImageList_Draw ... I fill a rectangle next to the drawn icon with COLOR_HIGHLIGHT and draw ...
    (microsoft.public.win32.programmer.gdi)
  • ImageList_Draw and icons with alpha channel
    ... I'm creating a memory DC which is compatible to the desktop's DC. ... the background color to GetSysColorand the text color ... The next thing I do is draw an icon into that DC using ImageList_Draw ... I fill a rectangle next to the drawn icon with COLOR_HIGHLIGHT and draw ...
    (microsoft.public.win32.programmer.ui)
  • Re: "Explain the icon" -- the answer
    ... If not for the explanation and the location where I saw this, ... The icon was drawn in the style often used for diagrammatic maps like ... reduced to straight lines at angles in multiples of 45 degrees -- one ...
    (rec.puzzles)
  • Re: How to get an associated file icon without the Alpha Channel i
    ... the shadow effect, but I need a little help please. ... I had a Picture Box control on to a Form and then used the SHGetFileInfo API ... to get a handle to the small icon with an Alpha Channel. ... The icon is drawn ...
    (microsoft.public.vb.winapi)
  • Re: Loading Small System Icons
    ... then drawn by the image list. ... as well as LoadIcon, returns the first available icon with required size ... requires you to extract all needed icons and build that bitmap, ...
    (microsoft.public.win32.programmer.ui)