Windows bitmap objects have fixed width and height. When you create an HBITMAP
you have to decide once and for all on the height, width and indeed other properties such as pixel format. So, of course when you modify the Width
and Height
property of a Delphi TBitmap
, then the implementing HBITMAP
will need to be re-created.
It seems that you are asking to be able to create an HBITMAP
that has width and height properties that can be modified. No such thing exists.