Question about BitBlit and half tone forms...

Raab, Andreas Andreas.Raab at disney.com
Sat Mar 31 00:16:57 UTC 2001


The halftone form is always treated as (32/depth)@(bits size) format. E.g.,
the two forms are interpreted identically during the blt.

  - Andreas

> -----Original Message-----
> From: ret at deltanet.com [mailto:ret at deltanet.com]
> Sent: Friday, March 30, 2001 2:22 PM
> To: squeak at cs.uiuc.edu
> Cc: recipient list not shown
> Subject: Question about BitBlit and half tone forms...
> 
> 
> Hello,
> 
> I was wondering why the case of ifTrue works as expected and 
> the path thru ifFalse does not...
> Any ideas?  On macOS9 Squeak3.1alpha+3848...
> 
> makeInterlaceImageWithLeftEye: aLeftEyeImage andRightEye: 
> aRightEyeImage 
>         "I make an interlace image from a left and right eye image...
>         This can also be used to produce lenticular images...
>         All images sent are 32 bits deep..."
> 
>         | anInterlaceImage hf |
> 
>         lensHorizontal
>                 ifTrue: [hf _ Form extent: 1 @ 2 depth: 32. 
> "horizontal interlace width 1 by height 2"
>                         hf colorAt: 0 @ 0 put: Color white]
>                 ifFalse: [hf _ Form extent: 2 @ 1 depth: 32. 
> "vertical interlace width 2 by height 1"
>                         hf colorAt: 0 @ 0 put: Color white].
> 
>         anInterlaceImage _ aRightEyeImage deepCopy.
> 
>         "Now blit the leftEyeImage onto the interlaceImage 
> thru the halftoneForm... "
>         (BitBlt
>                 destForm: anInterlaceImage
>                 sourceForm: aLeftEyeImage
>                 halftoneForm: hf
>                 combinationRule: Form paint
>                 destOrigin: 0 @ 0
>                 sourceOrigin: 0 @ 0
>                 extent: aLeftEyeImage extent
>                 clipRect: aLeftEyeImage boundingBox) copyBits.
>         ^ anInterlaceImage
> 
> Cordially,
> 
> -Rick-
> 
> "We keep moving forward, opening new doors and doing new 
> things, because we're curious." - Walt Disney
> 
> 





More information about the Squeak-dev mailing list