Exemple #1
0
 /// <summary>
 /// <p>Copies the content of this view's surface texture into the specified
 /// bitmap.
 /// </summary>
 /// <remarks>
 /// <p>Copies the content of this view's surface texture into the specified
 /// bitmap. If the surface texture is not available, the copy is not executed.
 /// The content of the surface texture will be scaled to fit exactly inside
 /// the specified bitmap.</p>
 /// <p><strong>Do not</strong> invoke this method from a drawing method
 /// (
 /// <see cref="onDraw(android.graphics.Canvas)">onDraw(android.graphics.Canvas)</see>
 /// for instance).</p>
 /// <p>If an error occurs, the bitmap is left unchanged.</p>
 /// </remarks>
 /// <param name="bitmap">
 /// The bitmap to copy the content of the surface texture into,
 /// cannot be null, all configurations are supported
 /// </param>
 /// <returns>The bitmap specified as a parameter</returns>
 /// <seealso cref="isAvailable()"></seealso>
 /// <seealso cref="getBitmap(int, int)"></seealso>
 /// <seealso cref="getBitmap()"></seealso>
 /// <exception cref="System.InvalidOperationException">
 /// if the hardware rendering context cannot be
 /// acquired to capture the bitmap
 /// </exception>
 public virtual android.graphics.Bitmap getBitmap(android.graphics.Bitmap bitmap)
 {
     if (bitmap != null && isAvailable())
     {
         android.view.View.AttachInfo info = mAttachInfo;
         if (info != null && info.mHardwareRenderer != null && info.mHardwareRenderer.isEnabled
                 ())
         {
             if (!info.mHardwareRenderer.validate())
             {
                 throw new System.InvalidOperationException("Could not acquire hardware rendering context"
                                                            );
             }
         }
         applyUpdate();
         applyTransformMatrix();
         mLayer.copyInto(bitmap);
     }
     return(bitmap);
 }
Exemple #2
0
 internal virtual void initializeIfNeeded(int width, int height, android.view.View
                                          .AttachInfo attachInfo, android.view.SurfaceHolder holder)
 {
     throw new System.NotImplementedException();
 }
Exemple #3
0
 internal abstract bool draw(android.view.View view, android.view.View.AttachInfo
                             attachInfo, android.view.HardwareRenderer.HardwareDrawCallbacks callbacks, android.graphics.Rect
                             dirty);
Exemple #4
0
 internal override bool draw(android.view.View view, android.view.View.AttachInfo
                             attachInfo, android.view.HardwareRenderer.HardwareDrawCallbacks callbacks, android.graphics.Rect
                             dirty)
 {
     throw new System.NotImplementedException();
 }