U++ framework
Do not panic. Ask here before giving up.

Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » MakeImagePaintOnly
MakeImagePaintOnly [message #6734] Sat, 25 November 2006 13:38
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Image MakeImagePaintOnly(const ImageMaker& m)

This is optimized version of MakeImage - it is useful when dealing with large images (like images in RichEdit). It instructs Draw to drop "client-side" data when pixels are moved to GDI - therefore pixels are no longer available in Image (it can be painted only, no other operations are allowed), OTOH they are not duplicated (in app memory and GDI memory).

For small images, like toolbar icons, is better to use normal MakeImage (GDI memory is cleaned be keeping number of HBMP handles low).

(While I was using Win32 system terms here, same applies for X11).
Previous Topic: ultimate++ 611-2dev for Linux (.deb)
Next Topic: Ctrl:: and CtrlFrame::OverPaint
Goto Forum:
  


Current Time: Sat Apr 25 23:56:39 GMT+2 2026

Total time taken to generate the page: 0.00635 seconds