]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/gizmos/statpict.txt
make pen/brush parameters const
[wxWidgets.git] / contrib / src / gizmos / statpict.txt
CommitLineData
fca36d9a
JS
1wxStaticPicture class
2by Wade Brainerd (wadeb@wadeb.com)
3
4Description:
5
6This class is an improved version of wxStaticBitmap.
7
8Rather than using a native bitmap control, it uses DC operations to draw the
9control. This makes its appearance more consistent across platforms, and
10allows for additional features.
11
12Features include:
13
14 wxStaticBitmap compatible API - drop-in replacement. Image alignment - top,
15 left, bottom, right, center vertical and/or horizontal.
16 Image scaling - scale horizontally and/or vertically, justified scaling
17 (maintains image aspect ratio).
18
19Platforms tested:
20
21 wxMSW
22 wxGTK
23 wxMac
24
25Implementation notes:
26
27Under MSW wxWindows uses the operating system to do an optimized (potentially
28hardware accelerated) blit in wxDC::DrawBitmap. This is usually fast enough to
29do image scaling without affecting the program's interactivity.
30
31On wxMac and wxGTK however, wxDC::DrawBitmap implicitly calls wxImage::Scale
32which is a much slower operation. Therefore, on these platforms wxStaticPicture
33caches the scaled image to make updates that don't change the image (overlapping
34windows, etc.) faster.