Function BlamRendering::DirectX::Drawing::DrawBitmapFromResource¶
Defined in File drawing.h
Function Documentation¶
-
HRESULT
BlamRendering::DirectX::Drawing
::
DrawBitmapFromResource
(int res_id, const char *res_type, D2D1_RECT_F area, int width, int height)¶ Draws a bitmap pulled from an application resource.
- Parameters
res_id
: - The ID of the resource.res_type
: - The type of the resource.area
: - The area to draw the bitmap within.width
: - The width of the bitmap. Currently unused.height
: - The height of the bitmap. Currently unused.
- Return
S_OK
if the item was drawn successfully, otherwise returns an error code.