⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__bmp__load__fns.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>MiniGUI V1.6.10 API Reference: Bitmap file load/save operations</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.htm">Main&nbsp;Page</a> | <a class="qindex" href="modules.htm">Modules</a> | <a class="qindex" href="classes.htm">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.htm">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.htm">Directories</a> | <a class="qindex" href="files.htm">File&nbsp;List</a> | <a class="qindex" href="functions.htm">Data&nbsp;Fields</a> | <a class="qindex" href="globals.htm">Globals</a> | <a class="qindex" href="pages.htm">Related&nbsp;Pages</a></div><h1>Bitmap file load/save operations<br><small>[<a class="el" href="group__text__output__fns.htm">Text output functions</a>]</small></h1><h2>Defines</h2><ul><li>#define <a class="el" href="group__bmp__load__fns.htm#ga63">LoadBitmap</a>&nbsp;&nbsp;&nbsp;LoadBitmapFromFile<dl class="el"><dd class="mdescRight">An alias of <em>LoadBitmapFromFile</em>.  <a href="#ga63"></a><br></dl><li>#define <a class="el" href="group__bmp__load__fns.htm#ga64">LoadMyBitmap</a>&nbsp;&nbsp;&nbsp;LoadMyBitmapFromFile<dl class="el"><dd class="mdescRight">Alias of <em>LoadMyBitmapFromFile</em>.  <a href="#ga64"></a><br></dl></ul><h2>Typedefs</h2><ul><li>typedef void(* <a class="el" href="group__bmp__load__fns.htm#ga0">CB_ONE_SCANLINE</a> )(void *context, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, int y)<dl class="el"><dd class="mdescRight">The type of scanline loaded callback.  <a href="#ga0"></a><br></dl></ul><h2>Functions</h2><ul><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga1">RegisterBitmapFileType</a> (const char *ext, void *(*init)(<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *fp, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal), int(*load)(<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *fp, void *init_info, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, <a class="el" href="group__bmp__load__fns.htm#ga0">CB_ONE_SCANLINE</a> cb, void *context), void(*cleanup)(void *init_info), int(*save)(<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *fp, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal), <a class="el" href="group__simple__types.htm#ga0">BOOL</a>(*check)(<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *fp))<dl class="el"><dd class="mdescRight">Registers a bitmap file loader, saver, and checker.  <a href="#ga1"></a><br></dl><li>MG_EXPORT const char *GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga2">CheckBitmapType</a> (<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *fp)<dl class="el"><dd class="mdescRight">Checks the type of the bitmap in a data source.  <a href="#ga2"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga5">LoadBitmapEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap, <a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *area, const char *ext)<dl class="el"><dd class="mdescRight">Loads a device-dependent bitmap from a general data source.  <a href="#ga5"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga6">LoadBitmapFromFile</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap, const char *spFileName)<dl class="el"><dd class="mdescRight">Loads a device-dependent bitmap from a file.  <a href="#ga6"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga7">LoadBitmapFromMem</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap, const void *mem, int size, const char *ext)<dl class="el"><dd class="mdescRight">Loads a device-dependent bitmap from memory.  <a href="#ga7"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga8">UnloadBitmap</a> (<a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap)<dl class="el"><dd class="mdescRight">Unloads a bitmap.  <a href="#ga8"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga9">ReplaceBitmapColor</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> iOColor, <a class="el" href="group__gdi__types.htm#ga8">gal_pixel</a> iNColor)<dl class="el"><dd class="mdescRight">Replaces a specific pixels in a bitmap with another pixel.  <a href="#ga9"></a><br></dl><li>MG_EXPORT void *GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga12">InitMyBitmapSL</a> (<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *area, const char *ext, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal)<dl class="el"><dd class="mdescRight">Initializes scanline loader of the MYBITMAP object from a data source.  <a href="#ga12"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga13">LoadMyBitmapSL</a> (<a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *area, void *load_info, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, <a class="el" href="group__bmp__load__fns.htm#ga0">CB_ONE_SCANLINE</a> cb, void *context)<dl class="el"><dd class="mdescRight">Loads MYBITMAP scanlines from a data source one by one.  <a href="#ga13"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga14">CleanupMyBitmapSL</a> (<a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, void *load_info)<dl class="el"><dd class="mdescRight">Cleanups the scanline loader.  <a href="#ga14"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga15">LoadMyBitmapEx</a> (<a class="el" href="struct__MYBITMAP.htm">PMYBITMAP</a> my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal, <a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *area, const char *ext)<dl class="el"><dd class="mdescRight">Loads a MYBITMAP object from a data source.  <a href="#ga15"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga16">LoadMyBitmapFromFile</a> (<a class="el" href="struct__MYBITMAP.htm">PMYBITMAP</a> my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal, const char *file_name)<dl class="el"><dd class="mdescRight">Loads a MYBITMAP object from a file.  <a href="#ga16"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga17">LoadMyBitmapFromMem</a> (<a class="el" href="struct__MYBITMAP.htm">PMYBITMAP</a> my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal, const void *mem, int size, const char *ext)<dl class="el"><dd class="mdescRight">Loads a MYBITMAP object from memory.  <a href="#ga17"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga18">UnloadMyBitmap</a> (<a class="el" href="struct__MYBITMAP.htm">PMYBITMAP</a> my_bmp)<dl class="el"><dd class="mdescRight">Unloads a bitmap.  <a href="#ga18"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga19">SaveMyBitmapToFile</a> (<a class="el" href="struct__MYBITMAP.htm">PMYBITMAP</a> my_bmp, <a class="el" href="struct__RGB.htm">RGB</a> *pal, const char *spFileName)<dl class="el"><dd class="mdescRight">Saves a MYBITMAP object to a bitmap file.  <a href="#ga19"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga20">SaveBitmapToFile</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> pBitmap, const char *spFileName)<dl class="el"><dd class="mdescRight">Saves a BITMAP object to a bitmap file.  <a href="#ga20"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga21">InitBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> w, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> h, <a class="el" href="group__basic__types.htm#ga4">Uint32</a> pitch, <a class="el" href="group__win32__types.htm#ga0">BYTE</a> *bits, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> bmp)<dl class="el"><dd class="mdescRight">Initializes a BITMAP object as a normal bitmap.  <a href="#ga21"></a><br></dl><li>MG_EXPORT <a class="el" href="group__handles.htm#ga2">HDC</a> GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga22">InitSlaveScreen</a> (const char *name, const char *mode)<dl class="el"><dd class="mdescRight">Initializes slave screen.  <a href="#ga22"></a><br></dl><li>MG_EXPORT void <a class="el" href="group__bmp__load__fns.htm#ga23">TerminateSlaveScreen</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc)<dl class="el"><dd class="mdescRight">Terminates slave screen.  <a href="#ga23"></a><br></dl><li>MG_EXPORT <a class="el" href="group__simple__types.htm#ga0">BOOL</a> GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga24">InitBitmapPixelFormat</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> bmp)<dl class="el"><dd class="mdescRight">Initializes the bitmap pixel format information of a BITMAP object.  <a href="#ga24"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga25">DeleteBitmapAlphaPixel</a> (<a class="el" href="struct__BITMAP.htm">PBITMAP</a> bmp)<dl class="el"><dd class="mdescRight">Deletes the bitmap alpha pixel format information of a BITMAP object.  <a href="#ga25"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga26">ExpandMyBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, <a class="el" href="struct__BITMAP.htm">PBITMAP</a> bmp, const <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, const <a class="el" href="struct__RGB.htm">RGB</a> *pal, int frame)<dl class="el"><dd class="mdescRight">Expands a MYBITMAP object to a BITMAP object.  <a href="#ga26"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga31">PaintImageEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, <a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *area, const char *ext)<dl class="el"><dd class="mdescRight">Paints an image from data source on device directly.  <a href="#ga31"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga32">PaintImageFromFile</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, const char *spFileName)<dl class="el"><dd class="mdescRight">Paints an image from file on device directly.  <a href="#ga32"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga33">PaintImageFromMem</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, const void *mem, int size, const char *ext)<dl class="el"><dd class="mdescRight">Paints an image from memory on device directly.  <a href="#ga33"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga34">StretchPaintImageEx</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, int w, int h, <a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *area, const char *ext)<dl class="el"><dd class="mdescRight">Paints an image from data source on device directly.  <a href="#ga34"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga35">StretchPaintImageFromFile</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, int w, int h, const char *spFileName)<dl class="el"><dd class="mdescRight">Paints an image from file on device directly.  <a href="#ga35"></a><br></dl><li>MG_EXPORT int GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga36">StretchPaintImageFromMem</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, int x, int y, int w, int h, const void *mem, int size, const char *ext)<dl class="el"><dd class="mdescRight">Paints an image from memory on device directly.  <a href="#ga36"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga37">RotateBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int angle)<dl class="el"><dd class="mdescRight">Rotate a bitmap object.  <a href="#ga37"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga38">RotateBitmapVFlip</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int angle)<dl class="el"><dd class="mdescRight">Flips vertically and rotates a bitmap object.  <a href="#ga38"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga39">RotateBitmapHFlip</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int angle)<dl class="el"><dd class="mdescRight">Flips horizontally and rotates a bitmap object.  <a href="#ga39"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga40">RotateScaledBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int angle, int w, int h)<dl class="el"><dd class="mdescRight">Stretches or shrinks a bitmap object at the same as rotating it.  <a href="#ga40"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga41">RotateScaledBitmapVFlip</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int angle, int w, int h)<dl class="el"><dd class="mdescRight">Flip vertically, rotates, stretch or shrinks a bitmap object.  <a href="#ga41"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga42">RotateScaledBitmapHFlip</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int angle, int w, int h)<dl class="el"><dd class="mdescRight">Flip horizontaly, rotates, stretch or shrinks a bitmap object.  <a href="#ga42"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga43">PivotBitmap</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, int lx, int ty, int cx, int cy, int angle)<dl class="el"><dd class="mdescRight">Pivot a bitmap object.  <a href="#ga43"></a><br></dl><li>MG_EXPORT void GUIAPI <a class="el" href="group__bmp__load__fns.htm#ga44">PivotScaledBitmapFlip</a> (<a class="el" href="group__handles.htm#ga2">HDC</a> hdc, const <a class="el" href="struct__BITMAP.htm">BITMAP</a> *bmp, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> y, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> cx, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> cy, int angle, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> scale_x, <a class="el" href="group__gdi__types.htm#ga10">fixed</a> scale_y, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> h_flip, <a class="el" href="group__simple__types.htm#ga0">BOOL</a> v_flip)<dl class="el"><dd class="mdescRight">Rotates, stretches or shrinks, flips a bitmap object.  <a href="#ga44"></a><br></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>Example:<p><div class="fragment"><pre class="fragment"><span class="comment">/*</span><span class="comment"> * The following code loads a BITMAP object from a file and then</span><span class="comment"> * fills a box in a DC.</span><span class="comment"> *</span><span class="comment"> * You should note that the code assigns 'bmType' field of the BITMAP object directly.</span><span class="comment"> */</span>{    <span class="keywordtype">int</span> tox = 800, toy = 800;    <span class="keywordtype">int</span> count;    <a class="code" href="struct__BITMAP.htm">BITMAP</a> bitmap;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> start_tick, end_tick;    <span class="comment">/* Load the bitmap from the file. */</span>    <span class="keywordflow">if</span> (<a class="code" href="group__bmp__load__fns.htm#ga63">LoadBitmap</a> (hdc, &amp;bitmap, <span class="stringliteral">"res/icon.bmp"</span>))        <span class="keywordflow">return</span>;    bitmap.<a class="code" href="struct__BITMAP.htm#o0">bmType</a> = BMP_TYPE_ALPHACHANNEL;    <span class="comment">/* Fill a box with the bitmap with alpha channel. */</span>    start_tick = <a class="code" href="group__timer__fns.htm#ga4">GetTickCount</a> ();    count = 1000;    <span class="keywordflow">while</span> (count--) {        tox = rand() % 800;        toy = rand() % 800;        <span class="comment">/* Set a random alpha channel. */</span>        bitmap.<a class="code" href="struct__BITMAP.htm#o3">bmAlpha</a> = rand() % 256;        <span class="comment">/* Fill the box. */</span>        <a class="code" href="group__bmp__fns.htm#ga1">FillBoxWithBitmap</a> (hdc, tox, toy, 0, 0, &amp;bitmap);    }    end_tick = <a class="code" href="group__timer__fns.htm#ga4">GetTickCount</a> ();    TellSpeed (hwnd, start_tick, end_tick, <span class="stringliteral">"Alpha Blended Bitmap"</span>, 1000);    bitmap.<a class="code" href="struct__BITMAP.htm#o0">bmType</a> = BMP_TYPE_ALPHACHANNEL | BMP_TYPE_COLORKEY;    <span class="comment">/* Set the color key (the transparent pixel) of the bitmap. */</span>    bitmap.<a class="code" href="struct__BITMAP.htm#o4">bmColorKey</a> = <a class="code" href="group__bmp__fns.htm#ga6">GetPixelInBitmap</a> (&amp;bitmap, 0, 0);    <span class="comment">/* Fill a box with the bitmap with alpha channel and color key. */</span>    start_tick = <a class="code" href="group__timer__fns.htm#ga4">GetTickCount</a> ();    count = 1000;    <span class="keywordflow">while</span> (count--) {        tox = rand() % 800;        toy = rand() % 800;        <span class="comment">/* Set a random alpha channel. */</span>        bitmap.<a class="code" href="struct__BITMAP.htm#o3">bmAlpha</a> = rand() % 256;        <span class="comment">/* Fill the box. */</span>        <a class="code" href="group__bmp__fns.htm#ga1">FillBoxWithBitmap</a> (hdc, tox, toy, 0, 0, &amp;bitmap);    }    end_tick = <a class="code" href="group__timer__fns.htm#ga4">GetTickCount</a> ();    TellSpeed (hwnd, start_tick, end_tick, <span class="stringliteral">"Alpha Blended Transparent Bitmap"</span>, 1000);    <a class="code" href="group__bmp__load__fns.htm#ga8">UnloadBitmap</a> (&amp;bitmap);}</pre></div> <hr><h2>Define Documentation</h2><a class="anchor" name="ga63" doxytag="gdi.h::LoadBitmap"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define LoadBitmap&nbsp;&nbsp;&nbsp;LoadBitmapFromFile          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>An alias of <em>LoadBitmapFromFile</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__load__fns.htm#ga6">LoadBitmapFromFile</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l07414">7414</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><a class="anchor" name="ga64" doxytag="gdi.h::LoadMyBitmap"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define LoadMyBitmap&nbsp;&nbsp;&nbsp;LoadMyBitmapFromFile          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Alias of <em>LoadMyBitmapFromFile</em>. <p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__load__fns.htm#ga16">LoadMyBitmapFromFile</a> </dd></dl><p>Definition at line <a class="el" href="gdi_8h-source.htm#l07552">7552</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><hr><h2>Typedef Documentation</h2><a class="anchor" name="ga0" doxytag="gdi.h::CB_ONE_SCANLINE"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">typedef void(* <a class="el" href="group__bmp__load__fns.htm#ga0">CB_ONE_SCANLINE</a>)(void *context, <a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *my_bmp, int y)          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>The type of scanline loaded callback. <p><p>Definition at line <a class="el" href="gdi_8h-source.htm#l07252">7252</a> of file <a class="el" href="gdi_8h-source.htm">gdi.h</a>.    </td>  </tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga2" doxytag="gdi.h::CheckBitmapType"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">const char *GUIAPI CheckBitmapType           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__MG__RWops.htm">MG_RWops</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>fp</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Checks the type of the bitmap in a data source. <p>This function checks the type of the bitmap in the data source <em>fp</em>, and returns the extension of this type of bitmap file.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>fp</em>&nbsp;</td><td>The pointer to the data source.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The extension of the type of bitmap file. NULL for not recongnized bitmap type.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__bmp__load__fns.htm#ga1">RegisterBitmapFileType</a> </dd></dl>    </td>  </tr></table><a class="anchor" name="ga14" doxytag="gdi.h::CleanupMyBitmapSL"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int GUIAPI CleanupMyBitmapSL           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="struct__MYBITMAP.htm">MYBITMAP</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>my_bmp</em>, </td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -