ImageMask.st
author Claus Gittinger <cg@exept.de>
Tue, 22 Apr 1997 14:17:55 +0200
changeset 1626 bc20e8147ab5
child 2679 aaf12b43b321
permissions -rw-r--r--
intitial checkin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1626
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
Depth1Image subclass:#ImageMask
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Graphics-Images'
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ImageMask class methodsFor:'documentation'!
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
documentation
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    instances of this class represent image masks;
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    if added to an image (via #mask:), only pixels for which the 
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    corresponding mask pixel is 1 are drawn.
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    ImageMask does not add anything new - basically, its a depth1-image.
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    [See also:]
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
        Image ImageReader
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    [author:]
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
        Claus Gittinger
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
! !
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
!ImageMask methodsFor:'queries'!
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
isMask
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    ^ true
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    "Created: 22.4.1997 / 14:12:20 / cg"
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
! !
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
!ImageMask class methodsFor:'documentation'!
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
version
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    ^ '$Header: /cvs/stx/stx/libview/ImageMask.st,v 1.1 1997-04-22 12:17:55 cg Exp $'
bc20e8147ab5 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
! !