⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 statpict.txt

📁 Wxpython Implemented on Windows CE, Source code
💻 TXT
字号:
wxStaticPicture class
by Wade Brainerd (wadeb@wadeb.com)

Description:

This class is an improved version of wxStaticBitmap.  

Rather than using a native bitmap control, it uses DC operations to draw the
control.  This makes its appearance more consistent across platforms, and
allows for additional features.

Features include:

  wxStaticBitmap compatible API - drop-in replacement.  Image alignment - top,
  left, bottom, right, center vertical and/or horizontal.
  Image scaling - scale horizontally and/or vertically, justified scaling
  (maintains image aspect ratio).

Platforms tested:  

  wxMSW
  wxGTK
  wxMac
  
Implementation notes:

Under MSW wxWindows uses the operating system to do an optimized (potentially
hardware accelerated) blit in wxDC::DrawBitmap.  This is usually fast enough to
do image scaling without affecting the program's interactivity.  

On wxMac and wxGTK however, wxDC::DrawBitmap implicitly calls wxImage::Scale 
which is a much slower operation.  Therefore, on these platforms wxStaticPicture 
caches the scaled image to make updates that don't change the image (overlapping 
windows, etc.) faster.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -