home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / mswindo / programm / misc / 1765 < prev    next >
Encoding:
Text File  |  1992-09-10  |  2.1 KB  |  46 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jas37876
  3. From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
  4. Subject: Need Algorithm for Fast Bitmaps...
  5. Message-ID: <BuDA8r.HvC@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Thu, 10 Sep 1992 14:43:37 GMT
  9. Lines: 35
  10.  
  11.      Me:
  12.        I am a good C/C++ programmer, but have never actually written a
  13.        windows program, just messed around changing the sample code.
  14.        I'm using MSC++ 7.00
  15.  
  16.      My problem:
  17.        I have wrote a program for DOS that uses a VIGA card to capture
  18.        a 512x512 24-bit image from VCR, converts it into 512x512x256
  19.        PCX file and saves to disk in about 20 seconds, which took me
  20.        a long time & a LOT of assembly !!
  21.  
  22.        Now, the Boss Man wants this program in Windows.  I have no fear 
  23.        of programming windows, but I'm not sure how to go about it. Here's
  24.        what I think I need to do.  What I need is suggestions from you
  25.        expert windows programmers !!
  26.  
  27.        -Read the VIGA data, convert it into a 256 color run length encode
  28.     Device (??Dependat or Independant) Bitmap, instead of PCX.
  29.        -Use a Windows function to display this image into a Window.
  30.        -Use a Windows function to save to a file ??
  31.  
  32.        Also, should I use DIB, DDB, PCX, BMP or what ?
  33.        Theres so much in the SDK for the various styles.  I think I
  34.        need to use Device Dependant Bitmaps because I will always be
  35.        working with 512x512x256 images and I need speed, since we a
  36.        are digitizeing a lot of these !
  37.  
  38.        I think I'm going to use the VIEWDIB sample code that comes with
  39.        C 7.00 as a starting point.  Is there better code to use?
  40.  
  41. -- 
  42. ------------------------------------------------------------------------
  43.  John A. Slagel     "My old man used to tell me, before he left this
  44.  j-slagel1@uiuc.edu  shitty world, never chase buses or women- you
  45.                      always get left behind." -The Marlboro Man
  46.