Reputation: 2101
In particular, i want to preset desired size, fetch a bitmap from external source, and then work with data in classy objecty-oriented manner.
I presume what
Am i correct with such assumptions?
Upvotes: 2
Views: 521
Reputation: 34949
TBits
is internally bit-structured, so it's not a straightforward collection of booleans.To get access to the internal data pointer, class helpers
can be used.
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;
Upvotes: 9