[ENH]BitBlt hsv with (0.2)

Karl Ramberg karl.ramberg at chello.se
Sat Jul 7 18:06:31 UTC 2001


Fixed up a little from previous post.
Now handles hue in the range -180 to 180 and
brightness and saturation in the range -1.0 to 1.0.

The former class HSVConverter is renamed to HSVForm.

The following doIt should get you started:

source _ Form fromFileNamed:'path/to/file'.
hf _ HSVForm hue:-180 saturation:0 brightness:-0.00.
dest _ Form extent: source extent depth: 32.
dest fill: dest boundingBox rule:3 fillColor: Color black.
(BitBlt
		destForm: dest
		sourceForm: source
		halftoneForm:  hf
		combinationRule: 39
		destOrigin: 0 @ 0
		sourceOrigin: 0 @ 0
		extent: s extent
		clipRect: s computeBoundingBox)copyBits.
(SketchMorph withForm: dest) openInWorld


Karl
-------------- next part --------------
Skipped content of type multipart/appledouble-------------- next part --------------
A non-text attachment was scrubbed...
Name: BitBltSimulati...v rule.2.cs.gz
Type: application/octet-stream
Size: 2116 bytes
Desc: Unknown Document
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010707/0eeb45b1/BitBltSimulati...vrule.2.cs.obj


More information about the Squeak-dev mailing list