Search found 3 matches

by go_micha
Mon Dec 12, 2005 10:56 pm
Forum: C++ Development
Topic: wxImage and Rescale()
Replies: 4
Views: 1143

leio, thank you for support, but I realy use the last wxWidgets, version 2.6.2
by go_micha
Mon Dec 12, 2005 5:41 pm
Forum: C++ Development
Topic: wxImage and Rescale()
Replies: 4
Views: 1143

wxImage and Rescale()

In my program, I need to rescale the loaded transparent png image. But when I try to rescale it before drawing, it lose its transparenting. void ImageCtrl::Paint(wxDC& dc, wxSize& size) { if (m_image.Ok()) { // OK, drawing transparently wxBitmap bmp0(m_image); if (bmp0.Ok()) dc.DrawBitmap(bmp0, 0, 0...
by go_micha
Thu Dec 08, 2005 4:22 pm
Forum: The Code Dump
Topic: Another wxString split function
Replies: 5
Views: 3314

for same purpose I use the next very simple function: // returns false if separator was not found. In this case rLeft contains input string bool SplitToken(const wxString& input, const wxChar& sep, wxString& rLeft, wxString& rRight) { rLeft = input.BeforeFirst(sep); if (rLeft == input) return false;...