Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Wenn printing the fill function doesn't work

Wenn printing the fill function doesn't work

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicshelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    willempipi
    wrote on last edited by
    #1

    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...

    C 1 Reply Last reply
    0
    • W willempipi

      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...

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      not all devices support FloodFill. see CDC::GetDeviceCaps(RC_FLOODFILL); -c


      Image tools: ThumbNailer, Bobber, TIFFAssembler

      W 1 Reply Last reply
      0
      • C Chris Losinger

        not all devices support FloodFill. see CDC::GetDeviceCaps(RC_FLOODFILL); -c


        Image tools: ThumbNailer, Bobber, TIFFAssembler

        W Offline
        W Offline
        willempipi
        wrote on last edited by
        #3

        solution/other function?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups