AutoBitmap Class Reference

#include <c4d_basebitmap.h>

详细描述

A simple BaseBitmap wrapper created from a filename or resource ID.

Private Attributes

BaseBitmap bmp

Allocations

  AutoBitmap (const maxon::String &str, Float pixelRatio=1.0)
  AutoBitmap ( Int32 id)
  ~AutoBitmap ()

运算符

  operator BaseBitmap * () const

构造函数 & 析构函数文档编制

◆  AutoBitmap() [1/2]

AutoBitmap ( const maxon::String str ,
Float   pixelRatio = 1.0  
)
explicit

Allocates a bitmap by filename string and optional pixel ratio.

参数
[in] str The bitmap filename string. Must be inside the res folder of a plugin data.
[in] pixelRatio An optional pixel ratio.

◆  AutoBitmap() [2/2]

AutoBitmap ( Int32   id )
explicit

Allocates a bitmap by icon ID registered with RegisterIcon() .

参数
[in] id A registered icon ID.

◆  ~AutoBitmap()

~ AutoBitmap ( )

Destructs the allocated AutoBitmap .

成员函数文档编制

◆  operator BaseBitmap *()

operator BaseBitmap * ( ) const

Gets the internal BaseBitmap pointer.

返回
The internal BaseBitmap pointer, or nullptr if no bitmap has been allocated.

Member Data Documentation

◆  bmp

BaseBitmap * bmp
private