Closed Bug 882733 Opened 11 years ago Closed 11 years ago

Implement DumpAsDataURL and DumpAsPNG for Moz2D

Categories

(Core :: Graphics, defect)

23 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: nical, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [mentor=nsilva@mozilla.com][lang=c++])

DumpAsDataURL in gfxASurface is very useful, we should have an equivalent in Moz2D.
(In reply to Nicolas Silva [:nical] from comment #0)
> DumpAsDataURL in gfxASurface is very useful, we should have an equivalent in
> Moz2D.

This will require an additional libpng dependency or an other solution (minpng.h?)
I'd be happy with free functions like

bool DumpSurfaceAsDataURL(SourceSurface* aSurface, FILE* aOutput);

And then we would not need to have in Moz2D if the additional dependency is a problem.
Whiteboard: [mentor=nsilva@mozilla.com][lang=c++]
\o/
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.