#if wxUSE_IMAGE
+// on some systems (Unixware 7.x) index is defined as a macro in the headers
+// which breaks the compilation below
+#undef index
+
#define wxIMAGE_OPTION_FILENAME wxString(_T("FileName"))
//-----------------------------------------------------------------------------
class WXDLLEXPORT wxImageHistogramEntry
{
public:
- wxImageHistogramEntry() : index(0), value(0) {}
+ wxImageHistogramEntry() { index = value = 0; }
unsigned long index;
unsigned long value;
};
{
public:
wxImage();
- wxImage( int width, int height );
+ wxImage( int width, int height, bool clear = true );
wxImage( int width, int height, unsigned char* data, bool static_data = FALSE );
wxImage( const wxString& name, long type = wxBITMAP_TYPE_ANY, int index = -1 );
wxImage( const wxString& name, const wxString& mimetype, int index = -1 );
#endif
#endif
- void Create( int width, int height );
- void Create( int width, int height, unsigned char* data, bool static_data = FALSE );
+ bool Create( int width, int height, bool clear = true );
+ bool Create( int width, int height, unsigned char* data, bool static_data = FALSE );
void Destroy();
// creates an identical copy of the image (the = operator