- Timestamp:
- 16/01/08 07:37:35 (5 years ago)
- File:
-
- 1 edited
-
trunk/src/wxDynamicBitmap.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wxDynamicBitmap.cpp
r130 r141 86 86 } 87 87 88 /** 89 * This function repaints the widget with a grayscale version of the currently 90 * displayed picture, or repaints it with the original version depending on the 91 * value of grayscale. 92 * \param grayscale [bool] if true repaints the image with grayscale version, 93 * otherwise reverts to the original picture 94 */ 88 95 void wxDynamicBitmap::SetGrayScale(bool grayscale) 89 96 { … … 94 101 wxImage tempimage; 95 102 tempimage = m_bitmap.ConvertToImage(); 96 ConvertToGrayScale(tempimage);97 m_graybitmap = wxBitmap(tempimage );103 //ConvertToGrayScale(tempimage); 104 m_graybitmap = wxBitmap(tempimage.ConvertToGreyscale()); 98 105 } 99 106 wxWindow::Refresh();
Note: See TracChangeset
for help on using the changeset viewer.
