Using Bit Maps as Area-Fill Patterns

An alternative to using the Font Editor to create your own pattern sets is to use a bit map as an area-fill pattern. You must call GpiSetBitmapId to give the bit map an lcid, and then call GpiSetPatternSet, specifying the lcid of the bit map. The bit map becomes a pattern set containing one pattern, and the current pattern-symbol attribute is ignored. GpiQueryBitmapHandle returns the handle of the bit map currently known by the lcid that you supply as input.

PM cannot distinguish among the lcids associated with a particular presentation space. Any lcid can identify a character set, marker set, pattern set, or bit map (that is being used as an area-fill pattern). For example, if you call GpiQueryNumberSetIds to determine how many lcids are currently assigned in the presentation space, the number returned to you includes all logical fonts defined for this presentation space. You also can use GpiDeleteSetId to remove lcids associated with the non-font entities. If you call this function to delete a bit map that is being used as an area-fill pattern, the bit map itself is not deleted. However, it is disassociated from its lcid, and the lcid can be reused.


[Back: Creating Marker Sets and Pattern Sets]
[Next: Using Paths with Fill Patterns]