private static void nativeDraw(android.graphics.Canvas.NativeCanvas canvas_instance , android.graphics.Rect loc, android.graphics.Bitmap.NativeBitmap bitmap_instance , byte[] c, android.graphics.Paint.NativePaint paint_instance_or_null, int destDensity , int srcDensity) { System.IntPtr loc_ptr = System.IntPtr.Zero; Sharpen.INativeHandle c_handle = null; try { loc_ptr = android.graphics.Rect.Rect_Helper.ManagedToNative(loc); c_handle = XobotOS.Runtime.MarshalGlue.Array_byte_Helper.GetPinnedPtr(c); libxobotos_NinePatch_drawI(canvas_instance, loc_ptr, bitmap_instance, c_handle.Address , paint_instance_or_null != null ? paint_instance_or_null : android.graphics.Paint.NativePaint .Zero, destDensity, srcDensity); android.graphics.Rect.Rect_Helper.MarshalOut(loc_ptr, loc); } finally { android.graphics.Rect.Rect_Helper.FreeManagedPtr(loc_ptr); if (c_handle != null) { c_handle.Free(); } } }
/// <summary> /// To record a picture, call beginRecording() and then draw into the Canvas /// that is returned. /// </summary> /// <remarks> /// To record a picture, call beginRecording() and then draw into the Canvas /// that is returned. Nothing we appear on screen, but all of the draw /// commands (e.g. drawRect(...)) will be recorded. To stop recording, call /// endRecording(). At this point the Canvas that was returned must no longer /// be referenced, and nothing should be drawn into it. /// </remarks> public virtual android.graphics.Canvas beginRecording(int width, int height) { android.graphics.Canvas.NativeCanvas ni_1 = nativeBeginRecording(mNativePicture, width, height); mRecordingCanvas = new android.graphics.Picture.RecordingCanvas(this, ni_1); return(mRecordingCanvas); }
private void nativeApplyToCanvas(android.graphics.Canvas.NativeCanvas native_canvas ) { libxobotos_Camera_nativeApplyToCanvas(native_canvas); }
private static extern void libxobotos_Camera_nativeApplyToCanvas(android.graphics.Canvas.NativeCanvas native_canvas);
private static extern void libxobotos_NinePatch_drawI(android.graphics.Canvas.NativeCanvas canvas_instance, System.IntPtr loc, android.graphics.Bitmap.NativeBitmap bitmap_instance , System.IntPtr c, android.graphics.Paint.NativePaint paint_instance_or_null, int destDensity, int srcDensity);
public RecordingCanvas(android.graphics.Picture pict, android.graphics.Canvas.NativeCanvas nativeCanvas) : base(nativeCanvas) { mPicture = pict; }
private static void nativeDraw(android.graphics.Canvas.NativeCanvas nativeCanvas, android.graphics.Picture.NativePicture nativePicture) { libxobotos_Picture_draw(nativeCanvas, nativePicture); }
private static extern void libxobotos_Picture_draw(android.graphics.Canvas.NativeCanvas nativeCanvas, android.graphics.Picture.NativePicture nativePicture);