Thread: Printing Bitmaps

  1. #1
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Printing Bitmaps

    How do I print bitmaps? I've done text but StretchBlt doesn't work for pinting. StretchBlt works for drawing to the screen.
    int a; don't make a program without it.

  2. #2
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    heeey, wazzzup kasten!

    Did a board search and an msdn search:

    http://cboard.cprogramming.com/showt...ighlight=print

    msdn links:
    http://msdn.microsoft.com/library/de...tspol_62ia.asp
    http://msdn.microsoft.com/library/de...tspol_2ik4.asp

    you finally doing some more coding then? heh

  3. #3
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Talking

    Thanks jeff, got it working now, but now could someone please tell me how to find the number of pixels x by x a printer can output?
    int a; don't make a program without it.

  4. #4
    Registered User
    Join Date
    Sep 2003
    Posts
    23
    Quote Originally Posted by Josh Kasten
    Thanks jeff, got it working now, but now could someone please tell me how to find the number of pixels x by x a printer can output?
    Petzold, 5th edition, Chapter 13 - Using the Printer, Application - DevCaps2.
    Amazing utility for exploring the printers and printing code in general.

    And btw, DevCap2 told me that in fact my laser printer supports both
    BitBlt and StretchBlt, but does not support FloodFill.

  5. #5
    Registered User Josh Kasten's Avatar
    Join Date
    Jul 2002
    Posts
    109

    Smile

    thanks for pointing that program out didn't see it in the book untill you said something about it.
    int a; don't make a program without it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C# Printing Problem
    By silverlight001 in forum C# Programming
    Replies: 0
    Last Post: 03-23-2009, 01:13 AM
  2. generic printing preferences dialog box
    By stanlvw in forum Windows Programming
    Replies: 8
    Last Post: 06-27-2008, 02:20 AM
  3. printing data to a file
    By coralreef in forum C Programming
    Replies: 3
    Last Post: 11-02-2006, 08:10 PM
  4. need help relating printing?
    By omarlodhi in forum Linux Programming
    Replies: 0
    Last Post: 03-03-2006, 04:46 AM
  5. MFC: Multiple clicks shows multiple bitmaps - how?
    By BrianK in forum Windows Programming
    Replies: 0
    Last Post: 06-20-2004, 07:25 PM