Does BufferedBitmap respects setPenWidth ?

Former Member
Former Member

Guys,

Do you know if setPenWidth is respected for BufferedBitmap?

Whatever value I set, it is always 1px …

I have:

mIcon = new Gfx.BufferedBitmap(…..
...
mIcon.getDc().setPenWidth(5);
mIcon.getDc().drawLine(…)

There is no much on the forum for BufferedBitmaps - so not sure if anybody met such problem already

  • Former Member
    Former Member
    The getDc() call generates a Dc object that contains the BufferedBitmap. You need to keep that object around because the BufferedBitmap object does not hold the Dc state information.

    var iconDc = mIcon.getDc();
    iconDc.setPenWidth(5);
    iconDc.drawLine(...);