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@deltanet.com [mailto:ret@deltanet.com] Sent: Friday, March 30, 2001 2:22 PM To: squeak@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
squeak-dev@lists.squeakfoundation.org