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