Are you using a device with 0.75 density ?
If yes, change in the class code this line
bmp.InitializeMutable(1dip, 1dip)
to this one
bmp.InitializeMutable(1, 1)
or to this one
bmp.InitializeMutable(2dip, 2dip)
1dip is equal to 0 with a density of 0,75 !