delphi - Can i access TBits internal bitmap? -
in particular, want preset desired size, fetch bitmap external source, , work data in classy objecty-oriented manner.
i presume
- tbits isnt straightforward collection of booleans and
- internal storage contiguous.
am correct such assumptions?
- correct,
tbits
internally bit-structured, it's not straightforward collection of booleans. - yes, storage handled allocating contiguous memory big enough carry size( in increments of sizeof(integer)).
to access internal data pointer, class helpers
can used.
type tbitshelper = class helper tbits private function getbitspointer: pointer; public property bitspt: pointer read getbitspointer; end; function tbitshelper.getbitspointer: pointer; begin result := self.fbits; end;
Comments
Post a Comment