home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11783 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.7 KB

  1. Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!po.CWRU.Edu!mbc
  2. From: mbc@po.CWRU.Edu (Michael B. Comet)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Help!  Microsoft QuickC for Windows + BITMAPS problem!?
  5. Date: 4 Jan 1993 17:29:08 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 29
  8. Message-ID: <1i9s54INNek5@usenet.INS.CWRU.Edu>
  9. Reply-To: mbc@po.CWRU.Edu (Michael B. Comet)
  10. NNTP-Posting-Host: slc12.ins.cwru.edu
  11.  
  12.  
  13.  
  14.     I have recently been working on a graphics viewer in microsoft
  15. quickc for windows.  No major problems as I have written one for DOS
  16. allready.  
  17.  
  18.     To speed up the drawing and updating of the windows, I am using
  19. the CreateBitmapIndirect() function and the StrechBlt() function to
  20. display the bitmaps.  I have ran into a problem though where bitmaps say
  21. 640x480 have weird horizontal shifts though starting about 100 lines in
  22. and every 100 lines or so.  Does anyone know of a problem with the
  23. standard bitmap format for files bigger than 64k?  The program looks
  24. fine for 320x200 images.  Also, I have tested my decompression by put
  25. code to view what's decompressed as it decodes an image line by line
  26. using the SetPixel() function.
  27.  
  28.     Any help would be appreciated.  Is there a better way to display
  29. a bitmap?  I am used to using a direct ptr to the screen in DOS, but I
  30. don't think that's going to work in windows....plus I don't want to have
  31. to worry about which SVGA card is in use etc...
  32.  
  33.     Thanks.
  34.  
  35.  
  36. -- 
  37. +======================================================================+
  38. |  Michael B. Comet - Computer Programmer / Graphics Artist  - CWRU    |
  39. |  mbc@po.CWRU.Edu  - "IF THEN THEN THEN = ELSE ELSE ELSE = THEN"      |
  40. +======================================================================+
  41.