AnyCAD Rapid API 2023
Help you to create a better world!
ScreenShot Class Reference

Public Member Functions

 ScreenShot (MemoryImage img, Camera camera)
 
MemoryImage GetImage ()
 
Camera GetCamera ()
 
Vector3 ReadColor (long x, long y)
 
Vector3 ReadColor (Vector3 worldPt)
 
void ToBGR ()
 
boolean SaveFile (String fileName)
 
Uint8List CreateMemoryImage ()
 
int SampleGBR (Vector3 worldPt, int offset)
 

Detailed Description

<>
Take snapshot for the screen.

Member Function Documentation

◆ SampleGBR()

int ScreenShot.SampleGBR ( Vector3  worldPt,
int  offset 
)

Get the RGB color

Parameters
worldPtthe position
offsetthe offset
Returns
0: R, 1:B, 2:G