iconPMap.pixelSize = (short)bpp;
iconPMap.pixelFormat = (short)bpp;
OS.memcpy(iconPtr[0], iconPMap, PixMap.sizeof);
/* Initialize the mask */
BitMap iconMask = new BitMap();
iconMask.rowBytes = (short)maskBpl;
iconMask.right = (short)width;
iconMask.bottom = (short)height;
OS.memcpy(iconPtr[0] + PixMap.sizeof, iconMask, BitMap.sizeof);