![]() |
Oyranos Colour Management System API |
start with a simple rectangle More...
#include <oyranos_alpha.h>
Public Member Functions | |
| oyRectangle_s * | oyRectangle_NewWith (double x, double y, double width, double height, oyObject_s object) |
| new with geometry | |
| oyRectangle_s * | oyRectangle_NewFrom (oyRectangle_s *ref, oyObject_s object) |
| new from other rectangle | |
| int | oyRectangle_SamplesFromImage (oyImage_s *image, oyRectangle_s *image_rectangle, oyRectangle_s *pixel_rectangle) |
| new from image | |
| oyRectangle_s * | oyRectangle_Copy (oyRectangle_s *orig, oyObject_s object) |
| copy/reference from other rectangle | |
| int | oyRectangle_Release (oyRectangle_s **obj) |
| release | |
| void | oyRectangle_SetGeo (oyRectangle_s *edit_rectangle, double x, double y, double width, double height) |
| set geometry | |
| void | oyRectangle_SetByRectangle (oyRectangle_s *edit_rectangle, oyRectangle_s *ref) |
| copy values | |
| void | oyRectangle_Trim (oyRectangle_s *edit_rectangle, oyRectangle_s *ref) |
| trim edit_rectangle to ref extents | |
| void | oyRectangle_MoveInside (oyRectangle_s *edit_rectangle, oyRectangle_s *ref) |
| trim edit_rectangle to ref extents | |
| void | oyRectangle_Scale (oyRectangle_s *edit_rectangle, double factor) |
| scale with origin in the top left corner | |
| void | oyRectangle_Normalise (oyRectangle_s *edit_rectangle) |
| normalise swapped values for width and height | |
| void | oyRectangle_Round (oyRectangle_s *edit_rectangle) |
| scale with origin in the top left corner | |
| int | oyRectangle_IsEqual (oyRectangle_s *rectangle1, oyRectangle_s *rectangle2) |
| compare | |
| int | oyRectangle_IsInside (oyRectangle_s *test, oyRectangle_s *ref) |
| compare | |
| int | oyRectangle_PointIsInside (oyRectangle_s *rectangle, double x, double y) |
| compare | |
| double | oyRectangle_CountPoints (oyRectangle_s *rectangle) |
| count number of points covered by this rectangle | |
| int | oyRectangle_Index (oyRectangle_s *rectangle, double x, double y) |
| return position inside rectangle, assuming rectangle size | |
| const char * | oyRectangle_Show (oyRectangle_s *r) |
| debug text not so threadsafe | |
Data Fields | |
| oyStruct_Copy_f | copy |
| oyStruct_Release_f | release |
start with a simple rectangle
| oyStruct_Copy_f oyRectangle_s::copy |
copy function
| oyStruct_Release_f oyRectangle_s::release |
release function