/*@ XArc :: XArc(const XPoint * pp1, const SHORT wight, const SHORT startAngle, const SHORT sweepAngle, const BOOL showLines, const BOOL fill, const SHORT hight, const SHORT xOff, const SHORT yOff)
@group constructors/destructors
@remarks Construct an arc
@parameters <t '°' c=2>
°XPoint * °position
°SHORT °width
°SHORT °starting angle
°SHORT °ending angle
°BOOL °TRUE=fill circle, FALSE=don∩t fill
°ULONG °if zero, height becomes width, otherwise an elipse is drawn (default is zero)
°SHORT °x-offset (default is zero)
°SHORT °y-offset (default is zero)
</t>
*/
XArc :: XArc(const XPoint * pp1, const SHORT wight, const SHORT startAngle, const SHORT sweepAngle, const BOOL showLines, const BOOL fill, const SHORT hight, const SHORT xOff, const SHORT yOff):XLine(pp1)
@remarks Load a bitmap from a file. <P><I>If this method is used, GBM.DLL and OLLGLIB.DLL must be in the LIBPATH.</I> <P>Due a bug (?) in OS/2-GPI you should specify params->cBitCount = BFP_BPP_TRUECOLOR if you want to modify or resave the bitmap.
@parameters <t '°' c=2>
°char * fileName °filename of the file to load
°XBitmapFilter * params °filetype specific filter informations. An initialized structure has to be created by XBitmap :: GetImportFilterStruct () or XGLibFileDialog. (default is NULL)
°BOOL releaseParams °filter informations will be released after usages
<\t>
@exceptions If the method fails to create a new bitmap an exception of the type XException is thrown.
@remarks Save a bitmap from a file. <P><I>If this method is used, GBM.DLL and OLLGLIB.DLL must be in the LIBPATH.</I> <P>Due a bug (?) in OS/2-GPI the bitmap should be in 24-bit-format.
@parameters <t '°' c=2>
°char * fileName °filename of the file to load
°XBitmapFilter * params °filetype specific filter informations. An initialized structure has to be created by XBitmap :: GetImportFilterStruct () or XGLibFileDialog. (default is NULL)
°BOOL releaseParams °filter informations will be released after usages
<\t>
@exceptions If the method fails to create a new bitmap an exception of the type XException is thrown.
@remarks Opens an dialog which allows you to modify the parameters of bitmap-import-filters interactivly. <P><I>If this method is used, GBM.DLL, OLLGLIB.DLL and OOLRES.DLL must be in the LIBPATH.</I>
@parameters <t '°' c=2>
°XWindow * owner °owner of the dialog
°char * filename °filename of the file to load (later)
°XBitmapFilter * params °filetype specific filter informations. An initialized structure has to be created by XBitmap :: GetImportFilterStruct () or XGLibFileDialog. (default is NULL)
<\t>
@exceptions If the method fails to create a new bitmap an exception of the type XException is thrown.
@remarks Opens an dialog which allows you to modify the parameters of bitmap-export-filters interactivly. <P><I>If this method is used, GBM.DLL, OLLGLIB.DLL and OOLRES.DLL must be in the LIBPATH.</I>
@parameters <t '°' c=2>
°XWindow * owner °owner of the dialog
°char * filename °filename of the file to load (later)
°XBitmapFilter * params °filetype specific filter informations. An initialized structure has to be created by XBitmap :: GetImportFilterStruct () or XGLibFileDialog. (default is NULL)
<\t>
@exceptions If the method fails to create a new bitmap an exception of the type XException is thrown.
OOLThrow("Could not load function \"OOL_GLIB_EXP_SETUP\" from library \"OOLGLIB.DLL\".", error);
}
delete lib;
}
/*@ XBitmap :: GetFilterExtensions ()
@group loading/saving a bitmap
@remarks Returns a NULL-terminated list of the file-extensions of all bitmap-formats supported by OOLGLIB. <P><I>If this method is used, GBM.DLL and OOLGLIB.DLL must be in the LIBPATH.</I>
@exceptions If the method fails an exception of the type XException is thrown.
*/
char** XBitmap :: GetFilterExtensions () {
CheckFilterProfile ();
return (char**) __XBMFProfile__->pszExtension;
}
/*@ XBitmap :: GetFilteNames ()
@group loading/saving a bitmap
@remarks Returns a NULL-terminated list of the names of all bitmap-formats supported by OOLGLIB. <P><I>If this method is used, GBM.DLL and OOLGLIB.DLL must be in the LIBPATH.</I>
@exceptions If the method fails an exception of the type XException is thrown.
@remarks Returns the best matching import-filter for the file you specified. The structure returned is used a paramter for several OOLGLIB-functions. To setup the structure manually use the declarations found in oolglib.h.<P><I>If this method is used, GBM.DLL and OLLRES.DLL must be in the LIBPATH.</I>
@parameters <t '°' c=2>
°char * filename °filename of the file to load (later)
<\t>
@exceptions If the method fails to create a new bitmap an exception of the type XException is thrown.
@remarks Returns the best matching export-filter for the file you specified. The structure returned is used a paramter for several OOLGLIB-functions. To setup the structure manually use the declarations found in oolglib.h.<P><I>If this method is used, GBM.DLL and OLLRES.DLL must be in the LIBPATH.</I>
@parameters <t '°' c=2>
°char * filename °filename of the file to load (later)
<\t>
@exceptions If the method fails to create a new bitmap an exception of the type XException is thrown.