Problem with API FloodFill
Posted on 1998-10-07
I am currently developing a graphic editor which will open and save files in WMF format. I'm using API function calls to draw GDI objects to WMF format but I am having trouble with FloodFill. According to my references, each metafile records contain a function with a specified Function Number and the FloodFill's function number is &H419. All of the API calls I used produced their expected function numbers except for one, the FloodFill for it returned an UNKNOWN FUNCTION with a function number &H548(when I used the ListWMF software to view the metafile records). What's so funny about it is that you can display the metafile correctly when you play it on screen, but when you play the metafile to the printer, the FloodFill doesn't work. I have received suggestions to first turn the WMF to bitmap before printing but I don't want this for it causes pixelation.
Can anyone help me find a FloodFill function which will produce the correct Function Number?