var buf = new Gfx.BufferedBitmap( ... );
...
var w = buf.getDc().getWidth();
var h = buf.getDc().getHeight();
If I understand you correctly, you are trying to get the height and width of a buffered bitmap object you have?
If so, I believe I have used the getDc() function before to get the dc associated with the bitmap, and then called getWidth() and getHeight() on that dc object.var buf = new Gfx.BufferedBitmap( ... );
...
var w = buf.getDc().getWidth();
var h = buf.getDc().getHeight();