This shows you the differences between two versions of the page.
c:graphics.h:writeimagefile [2015/05/06 23:03] Daniel Gohlke |
c:graphics.h:writeimagefile [2024/02/16 01:05] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
====Syntax of writeimagefile ==== | ====Syntax of writeimagefile ==== | ||
<code c> | <code c> | ||
- | #include "graphics.h" | + | #include "graphics.h" |
- | void writeimagefile( | + | void writeimagefile( |
- | const char* title=NULL, | + | const char* title=NULL, |
- | double width_inches=7, double border_left_inches=0.75, double | + | double width_inches=7, double border_left_inches=0.75, double |
- | border_top_inches=0.75, | + | border_top_inches=0.75, |
- | int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX | + | int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX |
- | ); | + | ); |
</code> | </code> | ||
Line 16: | Line 16: | ||
==== Description of writeimagefile ==== | ==== Description of writeimagefile ==== | ||
<code c> | <code c> | ||
- | The writeimagefile function is available in the winbgim implementation of | + | The writeimagefile function is available in the winbgim implementation of |
- | BGI graphics. You do not need to include conio.h; just include | + | BGI graphics. You do not need to include conio.h; just include |
- | graphics.h. The function saves a portion of the active page in a BMP | + | graphics.h. The function saves a portion of the active page in a BMP |
- | file. The filename must end in "BMP" or ".bmp", or it may be NULL (in | + | file. The filename must end in "BMP" or ".bmp", or it may be NULL (in |
- | which case a windows file save dialog box is opened to allow the user to | + | which case a windows file save dialog box is opened to allow the user to |
- | select a file name). | + | select a file name). |
- | See also | + | |
- | getimage | + | |
- | printimage | + | |
- | readimagefile | + | |
</code> | </code> | ||
- | + | ==== Example of writeimagefile ==== | |
- | + | <code c> | |
+ | no example at the moment please add one between the code c tags | ||
+ | </code> | ||
==== See also ==== | ==== See also ==== | ||
+ | |||
[[getimage]] | [[getimage]] | ||
[[printimage]] | [[printimage]] | ||
[[readimagefile]] | [[readimagefile]] | ||
- | |||