home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 955 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.3 KB  |  41 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!jchoi
  3. From: jchoi@nyx.cs.du.edu (jaeseon Choi)
  4. Subject: [Q] Brush larger than 8x8 possible with CreatePatternBrush() ?
  5. Message-ID: <1992Jul22.162740.887@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
  8. Date: Wed, 22 Jul 92 16:27:40 GMT
  9. Lines: 30
  10.  
  11.  
  12. Hi there!
  13.  
  14. I have something to ask.  I am trying to use a 16x16 mono bitmap image 
  15. as a pattern brush to fill some polygons. But, somehow Windows seems
  16. to use only a 8x8 part of it as a fill pattern.
  17.  
  18. I created a bitmap by 
  19.  
  20.         hBitmap = CreateBitmap(16, 16, 1, 1,  (LPSTR)bits);
  21.  
  22. - 'bits '  is a 32 byte long array of characters containing the pattern.
  23.  
  24. And then, with this bitmap Created a brush by
  25.  
  26.         hBr = CreatePatternBrush(hBitmap);
  27.  
  28. I selected this brush into a DC and drew something (rectangles,.....).
  29.  
  30. Now I see only upperleft quad of my 16x16 pattern is used in the pattern
  31. filling the drawings.
  32.  
  33. What's wrong here? I couldn't find anything in the documents that implies 
  34. any upper limit restriction for brush size.
  35.  
  36. Anybody please help! ~ ~ ~ please
  37.  
  38. jchoi.                          Contact point : jschoi@eve.kaist.ac.kr or
  39.                                 seodu@sorak.kaist.ac.kr
  40.  
  41.