Create your first automation in just a few minutes.Try Studio Web →
by Internal Labs
2
Activity
26.3k
I want to check the image if certain color (Red, Blue, Pink,Yellow,etc.) line is available in the PNG or JPG image will it work ?
After giving input how to get output as it is a multidimensional array how to retrieve it
The return value is a 1d array. In an image with width X and height Y, the first X entries of the array represent the top row of pixels.
How to use this activity? What should be given in Filepath and Image input? And how to take the output?
The input can be either an Image object, or the path to an image file as a String. Precisely one of these inputs is required.
This activity returns an array of Color objects. Each Color in the array corresponds to the color of a pixel from the input image.
For more information on the .NET Framework's Color struct, see here: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color?view=netframework-4.7.2
The results of the activity is changing if the resolution of the screen changes. How can it be avoided.
Yes, it's an array of Color objects corresponding to the pixels in the Image. If the resolution increases, then there are more pixels per inch of screen, and the results of this activity should be expected to change.
What is the output type for the GetPixelsfromImage activity ?
Per the description, this activity returns an array of System.Drawing.Color objects. For more information on the .NET Framework's Color struct, see here: https://docs.microsoft.com/en-us/dotnet/api/system.drawing.color?view=netframework-4.7.2
Technical
Version
1.0.1Updated
October 31, 2023Works with
Studio: 21.10 - 22.10
Certification
Silver Certified
Support
UiPath Community Support