[Mono-bugs] [Bug 653550] New: Mono.Cairo - SurfacePattern Not Available With SetSourceSurface

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 15 03:39:31 EST 2010


https://bugzilla.novell.com/show_bug.cgi?id=653550

https://bugzilla.novell.com/show_bug.cgi?id=653550#c0


           Summary: Mono.Cairo - SurfacePattern Not Available With
                    SetSourceSurface
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 1.2.0
          Platform: i686
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Mono.Cairo
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: peter.cartwright at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7
(KHTML, like Gecko) Ubuntu/10.10 Chromium/7.0.517.44 Chrome/7.0.517.44
Safari/534.7

If you use SetSourceSurface to set up a source pattern, you don't get access to
the newer SurfacePattern class - The Context Class member "Source" only returns
a Pattern object, which does not have the new "Filter" member. This means no
control over filtering.

You can set this up manually with a new SurfacePattern and attach that to a
Context but that has it's own issue - you cannot copy a surface starting at
(0,0) to (x > 0, y > 0).

Using Mono.Cairo 1.2.0. 


Reproducible: Always

Steps to Reproduce:
Copying one surface to another

USING SETSOURCESURFACE

Context g = new ImageSurface (dest);
g.SetSourceSurface (source, x, y);
g.Pattern.Extend (yes!)
g.Pattern.Filter (NO)
g.Rectangle (x, y, width, height);
g.Fill (); 

MANUAL SETUP

SurfacePattern pattern = new SurfacePattern (checkerboard);
pattern.Filter = xxx;
g.Pattern = pattern;
g.Rectangle (0, 0, width, height);
g.Fill ();

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list