Icon class.
Create an icon with an initial pixel buffer pix, a transparent color clr, and options as in FXImage.
Create the icon resource.
Reimplemented from FXImage.
Destroy the icon resource.
Detach the icon resource.
Render the image from client-side pixel buffer.
Resize pixmap to the specified width and height.