[Wnd-commit] wnd/wnd_doc/doc/gdip/Image image.dtpl,1.2,1.3
Status: Alpha
Brought to you by:
jurner
|
From: jürgen u. <cer...@us...> - 2005-08-14 18:18:22
|
Update of /cvsroot/wnd/wnd/wnd_doc/doc/gdip/Image In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28072 Modified Files: image.dtpl Log Message: combing over Index: image.dtpl =================================================================== RCS file: /cvsroot/wnd/wnd/wnd_doc/doc/gdip/Image/image.dtpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** image.dtpl 14 Aug 2005 15:55:58 -0000 1.2 --- image.dtpl 14 Aug 2005 18:18:15 -0000 1.3 *************** *** 9,13 **** writing ! <b>BMP, GIF, JPEG, PNG, TIFF, ICO, EMF (reading), WNF (reading)<b> <br><br> If you are curious take loook at --- 9,13 ---- writing ! <b>BMP, GIF, JPEG, PNG, TIFF, ICO, EMF (reading), WNF (reading)</b> <br><br> If you are curious take loook at *************** *** 25,28 **** --- 25,83 ---- + ::site:: class BitmapFromFile + <code class=import>defined in: wnd.gdip</code><br><br> + <code> BitmapFromFile(path)</code><br> + <P>Loads an image from file + The file may contain one of the following image formats: + <br><br> + By default gdi-plus supports the folloeing image firmats for reading and + writing + + <b>BMP, GIF, JPEG, PNG, TIFF, ICO, EMF (reading), WNF (reading)</b> + <br><br> + If you are curious take loook at + 'HKEY_CLASSES_ROOT\MIME\Database\Content Type\image/*' + to see what image filters are registered (ImageEn/Decoder does the same). + 'ImageFilter CLSID' is the CLSID of an image filter registered + for the image type. + <br><br> + </P> + + + + ::folder:: Bitmap methods + Bitmap instances support the following methods: + <br> + <a HREGF="../Image methods/contents.html">Image methods</a> + + ::item:: GetHBITMAP + <code>GetHBITMAP()</code><br> + <P>Creates a GDI bitmap handle from the bitmap. + </P> + + ::item:: GetHICON + <code>GetHICON()</code><br> + <P>Creates a GDI icon handle from the bitmap. + </P> + + ::item:: CloneL + <code>CloneL(x, y, w, h, pixel_format)</code><br> + <P>Extracts a portion (or all) of the bitmap and returns it a new bitmap + according to the pixeö_mode specified. + <br><br> + See ||type-PixelFormats|| + </P> + + ::item:: Clone + <code>Clone(x, y, w, h, pixel_format)</code><br> + <P>Extracts a portion (or all) of the bitmap and returns it a new bitmap + according to the pixeö_mode specified. + The dimensions of the area to clone may be specified as float values + <br><br> + See ||type-PixelFormats|| + </P> + + + ::folder:: Image methods Image instances support the following methods *************** *** 66,69 **** --- 121,146 ---- is not stored in the image). </P> + + ::item:: SetPalette + <code>SetPalette()</code><br> + <P>Sets ColorPalette for the image. palette should be a ||type-ColorPalette|| + with 'Count' set to the number of colors used. This should be 2 for 1-bit + images, 16 for 4-bit and 256 for 8-bit images. Images with a higher resolution + then 8-bits do not use a palette + </P> + + + ::item:: GetFormat + <code>GetFormat()</code><br> + <P>Returns a GUID describing the format of the image. + You can compare the returned GUID to one of the + ||type-ImageFormats|| to find out the actual format of the image + </P> + + ::item:: RotateFlip + <code>RotateFlip(rfType)</code><br> + <P>Rotates and/or flips the image. See ||type-RoptateFlip|| constants for + the rfType argument describing how to flip or rotate the image. + </P> *************** *** 71,78 **** <code>SaveToFile(path, Encoder)</code><br> <P>Saves the image to file. Encoder should be an encoder ! returned by the 'ImageCodec.getEncoder' method. </P> ::item:: Close <code>Close()</code><br> --- 148,156 ---- <code>SaveToFile(path, Encoder)</code><br> <P>Saves the image to file. Encoder should be an encoder ! returned by the 'ImageEncoder' (no link yet) class. </P> + ::item:: Close <code>Close()</code><br> |