Forum Discussion

sathish_subrama's avatar
sathish_subrama
Occasional Contributor
5 years ago

unable to identify the draw image inthe test application

unable to identify the draw image inthe test application   Its drawan application contains four layered diagram.  
  • BenoitB's avatar
    BenoitB
    5 years ago

    To access the pixels array of an object, just do that (pseudo code):

      ...

    // Get the image of the object
    var image = myObject.Picture(Region bounds));
    
    // Accessing individual pixel by
    if (image.Pixels(i, j) == MycolorToCheck) 
     ...

    // MycolorToCheck could be a predefined Windodws color (clBlack, clAqua, ..) or in RGB format.

     

    For more information, type Pixels and Working with color in your TestComplete help (magic F1 key).