Example #1
0
 public bool Paint(P3D_Brush brush, P3D_Matrix matrix)
 {
     if ((this.Canvas == null) || (brush == null))
     {
         return(false);
     }
     brush.Paint(this.Canvas, matrix);
     this.Dirty = true;
     return(true);
 }
Example #2
0
    // This causes the current paint operation to get applied to the specified matrix in pixel space
    public bool Paint(P3D_Brush brush, P3D_Matrix matrix)
    {
        if (Canvas != null && brush != null)
        {
            brush.Paint(Canvas, matrix);

            Dirty = true;

            return(true);
        }

        return(false);
    }