Functions | |
void | Compute_Text_From_Text16 (int incount, const HC_PIXEL *intext16, const char *encoding, char *outtext) |
void | Compute_Text16_From_Text (const char *intext, const char *encoding, int *outcount, const HC_PIXEL *outtext16) |
void Compute_Text_From_Text16 | ( | int | incount, | |
const HC_PIXEL * | intext16, | |||
const char * | encoding, | |||
char * | outtext | |||
) |
Converts from string to integer-array representations of 16-bit characters.
incount | - Number of characters in intext16. | |
intext16 | - An array of 16-bit integers. Each integer represents one short character. | |
encoding | - Any of the encoding constants described under Insert_Text() . | |
outtext | - The characters from "intext16", in packed byte format. Passed by reference always. Returned to user. |
Calling Compute_XXX() routines to obtain data associated with a display generates an update. On most devices, this poses no problem. However, for hardcopy devices such as Postscript or CGM, this can generate a blank page. To avoid this problem, applications often open a temporary driver subsegment, call the compute routine, retain the computed information, and then discard the temporary driver subsegment.
void Compute_Text16_From_Text | ( | const char * | intext, | |
const char * | encoding, | |||
int * | outcount, | |||
const HC_PIXEL * | outtext16 | |||
) |
Converts from integer-array representations of 16-bit characters to string representations.
intext | - The characters in packed-byte format. | |
encoding | - Any of the encoding constants described under Insert_Text() . | |
outcount | - The number of characters unpacked into outtext16. Passed by reference always. Returned to user. | |
outtext16 | - The characters in full 16-bit format, one per short element after unpacking. Passed by reference always. Returned to user. |