This function saves the marks associated with the HIGEAR image to a separate .ART file.
|
Copy Code
|
|
|---|---|
AT_ERRCOUNT ART_file_export(
HIGEAR hIGear,
const LPSTR lpszFileName,
DWORD dwPageNumber,
BOOL fReplace
);
|
|
| Name | Type | Description |
|---|---|---|
| hIGear | HIGEAR | HIGEAR handle to the image. |
| lpszFileName | const LPSTR | A far pointer to a NULL-terminated string containing the name of the .ART file to export. |
| dwPageNumber | DWORD | Use this parameter to save one page of an existing file to a new file. Set this parameter to the page number of the .ART file that you want to save to the new file. |
| fReplace | BOOL | This parameter is relevant if the target .ART file already exists and has multiple pages. Set to TRUE to replace the page; set to FALSE to insert the page. |
Returns the number of ImageGear errors that occurred during the function call.
All pixel formats supported by ImageGear for C and C++.
Annotation
|
Copy Code
|
|
|---|---|
HIGEAR hIGear; /* HIGEAR handle of image */ char FAR *szARTFile; /* Name of the ART file */ /* to export */ AT_ERRCOUNT nErrcount; /* Tally of IG errors on stack */ szARTFile = "ARTsnack.ART"; nErrcount = IG_save_file(hIGear, "Snack.png", IG_SAVE_PNG); nErrcount = ART_file_export(hIGear, szARTFile, 2, FALSE); |
|
Other ways to save marks: