ClearImage COM Server
OrImage Method
See Also  Example  Send Feedback
ImgSrc
left
Target position on CiTools.Image object. Default value is 0
top
Target position on CiTools.Image object. Default value is 0
CiTools Object : OrImage Method

Description

Logical AND with another imageLogical OR with another image

Syntax

Visual Basic
Public Sub OrImage( _
   ByVal ImgSrc As CiImage, _
   Optional ByVal left As Long = 0, _
   Optional ByVal top As Long = 0 _
) 

Parameters

ImgSrc
left
Target position on CiTools.Image object. Default value is 0
top
Target position on CiTools.Image object. Default value is 0

Remarks

!MISSING PHRASE '_ZONEFAIL'! 
BitsPerPixel property of object.Image and ImgSrc should be the same.

Example

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

See Also

© 1992-2011. Inlite Research, Inc. All Rights Reserved.