/** * <summary> * Draws a bitmap at the specified position. * <para> * The bitmap is provided as a binary object, * where each pixel maps to a bit, from left to right and from top to bottom. * The most significant bit of each byte maps to the leftmost pixel, and the least * significant bit maps to the rightmost pixel. Bits set to 1 are drawn using the * layer selected pen color. Bits set to 0 are drawn using the specified background * gray level, unless -1 is specified, in which case they are not drawn at all * (as if transparent). * </para> * </summary> * <param name="x"> * the distance from left of layer to the left of the bitmap, in pixels * </param> * <param name="y"> * the distance from top of layer to the top of the bitmap, in pixels * </param> * <param name="w"> * the width of the bitmap, in pixels * </param> * <param name="bitmap"> * a binary object * </param> * <param name="bgcol"> * the background gray level to use for zero bits (0 = black, * 255 = white), or -1 to leave the pixels unchanged * </param> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public virtual int drawBitmap(int x, int y, int w, byte[] bitmap, int bgcol) { return(_objptr.drawBitmap(x, y, w, bitmap, bgcol)); }