ID2D1DeviceContext3::D rawSpriteBatch (ID2D1SpriteBatch*,UINT32,UINT32,ID2D1Bitmap*,D2D1_BITMAP_INTERPOLATION_MODE,D2D1_SPRITE_OPTIONS) 方法 (d2d1_3.h)

使用指定的绘图选项将部分或全部给定子画面批呈现到设备上下文中。

语法

void DrawSpriteBatch(
  [in] ID2D1SpriteBatch               *spriteBatch,
       UINT32                         startIndex,
       UINT32                         spriteCount,
  [in] ID2D1Bitmap                    *bitmap,
       D2D1_BITMAP_INTERPOLATION_MODE interpolationMode,
       D2D1_SPRITE_OPTIONS            spriteOptions
);

参数

[in] spriteBatch

类型: ID2D1SpriteBatch*

要绘制的子画面批处理。

startIndex

类型: UINT32

要绘制的子画面批处理中第一个子画面的索引。

spriteCount

类型: UINT32

要绘制的子画面数。

[in] bitmap

类型: ID2D1Bitmap*

要从中获取子画面的位图。 每个子画面的源矩形都引用此位图的一部分。

interpolationMode

类型: D2D1_BITMAP_INTERPOLATION_MODE

绘制此子画面批处理时要使用的内插模式。 这将确定在执行缩放时 Direct2D 如何在绘制的子画面中内插像素。

spriteOptions

类型: D2D1_SPRITE_OPTIONS

要用于此子画面批的其他绘图选项(如果有)。

返回值

要求

   
目标平台 Windows
标头 d2d1_3.h
Library D2d1.lib
DLL D2d1.dll

另请参阅

ID2D1DeviceContext3