CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Printing Bitmaps

    I've been trying to print a CBitmap taken originally from a 16-bit
    color display DC and print to a Print DC. Print preview looks
    great but the printout is a black rect. I've been using CDC::BitBlt and
    CDC::StretchBlt.

    Should I be using ::SetDIBitsToDevice instead?
    Any help is greatly appreciated.


  2. #2
    Join Date
    May 1999
    Posts
    11

    Re: Printing Bitmaps

    There's some discussion of this if you search for DIB. However, I haven't gotten this to work either. I can print 1 BIT images just fine but 8 bit images come out like your's do.
    The answer is apprently to use DIBs but I can't figure out the whole process of conversion.

    So far the suggestions here haven't worked for me.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured