
ExtFloodFill to fill regions with color
I am trying to copy the contents of Picture (on which I have drawn
some graphics with Line and Print) to the clipboard as a bitmap:
ClipBoard.Clear
ClipBoard.SetData Picture1.Image
When the picture control is small (say 2 inches square, the clipboard image
is fine. However when it is larger, (say 4x8 inches on screen) the
image is scrambled (portions are horizontally displaced, although the
whole image seems to be there).
When I make a BMP file of the same image, it looks fine (undamaged)
when loaded into Paintbrush (the BMP file is approx 220K bytes).
SavePicture Picture1.Image, "Test.BMP"
When I do the following:
Picture1.Picture = Picture1.Image
the picture control also shows the same scrambled image, so it is
probably not the Clipboard that is mangling the image.
Is this a well known bug, or have I missed something? The Picture
has AutoRedraw set to True and ClipControls set to False, but I have
tried other settings without solving the problem.
Thanks for the help.
Hans J. Reich