Tizen Native API
|
Functions | |
const char * | evas_load_error_str (Evas_Load_Error error) |
Converts the given Evas image load error code into a string describing it in English. | |
void | evas_color_hsv_to_rgb (float h, float s, float v, int *r, int *g, int *b) |
Converts a given color from HSV to RGB format. | |
void | evas_color_rgb_to_hsv (int r, int g, int b, float *h, float *s, float *v) |
Converts a given color from RGB to HSV format. | |
void | evas_color_argb_premul (int a, int *r, int *g, int *b) |
Pre-multiplies a rgb triplet by an alpha factor. | |
void | evas_color_argb_unpremul (int a, int *r, int *g, int *b) |
Undoes pre-multiplication of a rgb triplet by an alpha factor. | |
void | evas_data_argb_premul (unsigned int *data, unsigned int len) |
Pre-multiplies data by an alpha factor. | |
void | evas_data_argb_unpremul (unsigned int *data, unsigned int len) |
Undoes pre-multiplication data by an alpha factor. | |
int | evas_string_char_next_get (const char *str, int pos, int *decoded) |
Gets the next character in the string. | |
int | evas_string_char_prev_get (const char *str, int pos, int *decoded) |
Gets the previous character in the string. | |
int | evas_string_char_len_get (const char *str) |
Gets the length in characters of the string. |
This group provides general utilities functions.
void evas_color_argb_premul | ( | int | a, |
int * | r, | ||
int * | g, | ||
int * | b | ||
) |
Pre-multiplies a rgb triplet by an alpha factor.
This function pre-multiplies a given rgb triplet by an alpha factor. Alpha factor is used to define transparency.
[in] | a | The alpha factor |
[out] | r | The Red component of the color |
[out] | g | The Green component of the color |
[out] | b | The Blue component of the color |
void evas_color_argb_unpremul | ( | int | a, |
int * | r, | ||
int * | g, | ||
int * | b | ||
) |
Undoes pre-multiplication of a rgb triplet by an alpha factor.
This function undoes pre-multiplication a given rbg triplet by an alpha factor. Alpha factor is used to define transparency.
[in] | a | The alpha factor |
[out] | r | The Red component of the color |
[out] | g | The Green component of the color |
[out] | b | The Blue component of the color |
void evas_color_hsv_to_rgb | ( | float | h, |
float | s, | ||
float | v, | ||
int * | r, | ||
int * | g, | ||
int * | b | ||
) |
Converts a given color from HSV to RGB format.
This function converts a given color in HSV color format to RGB color format.
[in] | h | The Hue component of the color |
[in] | s | The Saturation component of the color |
[in] | v | The Value component of the color |
[out] | r | The Red component of the color |
[out] | g | The Green component of the color |
[out] | b | The Blue component of the color |
void evas_color_rgb_to_hsv | ( | int | r, |
int | g, | ||
int | b, | ||
float * | h, | ||
float * | s, | ||
float * | v | ||
) |
Converts a given color from RGB to HSV format.
This function converts a given color in RGB color format to HSV color format.
[in] | r | The Red component of the color |
[in] | g | The Green component of the color |
[in] | b | The Blue component of the color |
[out] | h | The Hue component of the color |
[out] | s | The Saturation component of the color |
[out] | v | The Value component of the color |
void evas_data_argb_premul | ( | unsigned int * | data, |
unsigned int | len | ||
) |
Pre-multiplies data by an alpha factor.
This function pre-multiplies a given data by an alpha factor. Alpha factor is used to define transparency.
[in] | data | The data value |
[in] | len | The length value |
void evas_data_argb_unpremul | ( | unsigned int * | data, |
unsigned int | len | ||
) |
Undoes pre-multiplication data by an alpha factor.
This function undoes the pre-multiplication of a given data by an alpha factor. Alpha factor is used to define transparency.
[in] | data | The data value |
[in] | len | The length value |
const char* evas_load_error_str | ( | Evas_Load_Error | error | ) |
Converts the given Evas image load error code into a string describing it in English.
valid_path
is the path to a valid image and bogus_path
is a path to a file which does not exist. The two outputs of evas_load_error_str() would be (if no other errors occur): "No error on load"
and "File (or file path) does
not exist"
, respectively.[in] | error | The error code A value in Evas_Load_Error. |
"Unknown error"
is returned. int evas_string_char_len_get | ( | const char * | str | ) |
Gets the length in characters of the string.
[in] | str | The string to get the length of |
int evas_string_char_next_get | ( | const char * | str, |
int | pos, | ||
int * | decoded | ||
) |
Gets the next character in the string.
[in] | str | The UTF-8 string |
[in] | pos | The byte index where to start |
[out] | decoded | The address to store the decoded code point This is optional. |
int evas_string_char_prev_get | ( | const char * | str, |
int | pos, | ||
int * | decoded | ||
) |
Gets the previous character in the string.
[in] | str | The UTF-8 string |
[in] | pos | The byte index where to start |
[out] | decoded | The address where to store the decoded code point This is optional. |