Bad use of BitmapFillStyle and FormCanvas>>fillRectangle:fillStyle:?

Ken Causey ken at kencausey.com
Thu Apr 22 13:38:01 UTC 2004


On Thu, 2004-04-22 at 03:15, Boris Gaertner wrote:
> Good morning, Ken
> 
> Can you please try this:
> 
>  | fs  bc |
> 
>   fs := BitmapFillStyle fromForm: (Form fromBMPFileNamed:
>   'pic001.bmp').
>   fs origin: (0 at 0).  
>   " optionally, you may add:
>    fs direction: 80 at 80.
>   fs normal: 80 at -80.
>   --- end of optional addition ----- "
> bc := FormCanvas on: Display.
> bc fillRectangle: (20 at 20 extent: 200 @ 200)
>     fillStyle: fs
> 
> It works for me on a Squeak  #5878  on windows 98, but
> as soon as I drop the  fs origin: (0 at 0).
> I get the failure that you describe. The origin *is*
> needed, whereas direction and normal are optional.

Yes I confirm that for me this works as long as the origin is set and
fails if it is not.

> 
> I looked at your fix from Jan 27, and I think it is really
> related to that problem. I will look at it more carefully
> right now and review it.
> 

Thank you very much for taking the time to review my fix.

Ken

> Greetings, Boris
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040422/eb6b7b68/attachment.pgp


More information about the Squeak-dev mailing list