c++ - Creating an bitmap atlas with direct2d, what does "current bitmap" refer to? -
so trying bitmaps atlas direct2d. method have maybe want but... current bitmap refer to? if understand well, doesn't copy , area bitmap bitmap right?
virtual hresult copyfrombitmap( [in, optional] const d2d1_point_2u *destpoint, [in] id2d1bitmap *bitmap, [in, optional] const d2d1_rect_u *srcrect ) = 0;
destpoint [in, optional]
type: const d2d1_point_2u*
in current bitmap, upper-left corner of area region specified srcrect copied.
bitmap [in]
type: id2d1bitmap*
the bitmap copy from.
srcrect [in, optional]
type: const d2d1_rect_u*
the area of bitmap copy
copyfrombitmap()
method on id2d1bitmap
interface, implies have bitmap already, object calls copy function. ...
id2d1bitmap *psourcebitmap = 0; id2d1bitmap *pdestinationbitmap = 0; // initialisation of above bitmaps goes here ... // copy region source destination pdestinationbitmap->copyfrombitmap(/*point want copy to*/, psourcebitmap, /*rect copy from*/);
Comments
Post a Comment