/// <summary>Set the density scale at which this drawable will be rendered.</summary>
 /// <remarks>
 /// Set the density scale at which this drawable will be rendered. This
 /// method assumes the drawable will be rendered at the same density as the
 /// specified canvas.
 /// </remarks>
 /// <param name="canvas">The Canvas from which the density scale must be obtained.</param>
 /// <seealso cref="android.graphics.Bitmap.setDensity(int)">android.graphics.Bitmap.setDensity(int)
 ///     </seealso>
 /// <seealso cref="android.graphics.Bitmap.getDensity()">android.graphics.Bitmap.getDensity()
 ///     </seealso>
 public virtual void setTargetDensity(android.graphics.Canvas canvas)
 {
     setTargetDensity(canvas.getDensity());
 }