Logical AND with another image
- ImgSrc
- left
- Target position on CiTools.Image object. Default value is 0
- top
- Target position on CiTools.Image object. Default value is 0
!MISSING PHRASE '_ZONEFAIL'!
BitsPerPixel property of object.Image and ImgSrc should be the same.
Logical Functions
VB Example (Visual Basic) | Copy Code |
---|---|
Public Sub T_LogicalFunctions(ByRef Tools As CiTools, ByRef ImgSrc As CiImage) If (Tools.Image.IsZone) Then Debug.Print "Logical Functions can not be applied to zone" Exit Sub End If Dim x, y: x = 20: y = 20 Tools.AndImage ImgSrc, x, y x = x + Tools.Image.Width / 5 + 20 y = y + Tools.Image.Height / 5 + 20 Tools.OrImage ImgSrc, x, y x = x + Tools.Image.Width / 5 + 20 y = y + Tools.Image.Height / 5 + 20 Tools.XorImage ImgSrc, x, y x = x + Tools.Image.Width / 5 + 20 y = y + Tools.Image.Height / 5 + 20 Tools.PasteImage ImgSrc, x, y End Sub |