Wenn printing the fill function doesn't work
-
hi, I have this problem that wenn i begin printing a drawing with Visual C++ it doesn't fill a rectangle. i just use the function:
void CRSARuitLocaties::SelectPrintRuit(CDC *dc, CRect r, FLOAT Factor, int Ruitnr) { m_strFilter.Format("Nr = %d", Ruitnr); Open(); int x,y; CBrush* brush; CBrush* oldBrush; brush = new CBrush(RGB(255,0,0)); while(!IsEOF()) { oldBrush = dc->SelectObject(brush); x = r.left + (m_xmiddel / Factor); y = r.top - (m_ymiddel / Factor); dc->FloodFill(x, y, RGB(0,0,0)); dc->SelectObject(oldBrush); MoveNext(); } delete brush; Close(); }
the locations are right, i've checked... -
hi, I have this problem that wenn i begin printing a drawing with Visual C++ it doesn't fill a rectangle. i just use the function:
void CRSARuitLocaties::SelectPrintRuit(CDC *dc, CRect r, FLOAT Factor, int Ruitnr) { m_strFilter.Format("Nr = %d", Ruitnr); Open(); int x,y; CBrush* brush; CBrush* oldBrush; brush = new CBrush(RGB(255,0,0)); while(!IsEOF()) { oldBrush = dc->SelectObject(brush); x = r.left + (m_xmiddel / Factor); y = r.top - (m_ymiddel / Factor); dc->FloodFill(x, y, RGB(0,0,0)); dc->SelectObject(oldBrush); MoveNext(); } delete brush; Close(); }
the locations are right, i've checked...not all devices support FloodFill. see CDC::GetDeviceCaps(RC_FLOODFILL); -c
Image tools: ThumbNailer, Bobber, TIFFAssembler
-
not all devices support FloodFill. see CDC::GetDeviceCaps(RC_FLOODFILL); -c
Image tools: ThumbNailer, Bobber, TIFFAssembler
solution/other function?