特に、目的のサイズを事前設定し、外部ソースからビットマップをフェッチしてから、洗練されたオブジェクト指向の方法でデータを操作したいと考えています。
私は何を推測します
- TBits はブール値と
- 内部ストレージは連続しています。
私はそのような仮定で正しいですか?
TBits
内部的にビット構造化されているため、ブール値の単純なコレクションではありません。内部データ ポインタへのアクセスを取得するには、class helpers
を使用できます。
Type
TBitsHelper = class helper for TBits
private
function GetBitsPointer: Pointer;
public
property BitsPt: pointer read GetBitsPointer;
end;
function TBitsHelper.GetBitsPointer: Pointer;
begin
with Self do Result := FBits;
end;