Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 159546 Details for
Bug 248785
eog using wrong units for svg <clipPath>
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
small cairo example that generates a box image in viewtest.svg
viewtest.c (text/x-csrc), 846 bytes, created by
John Ellson
on 2007-07-18 19:17:50 UTC
(
hide
)
Description:
small cairo example that generates a box image in viewtest.svg
Filename:
MIME Type:
Creator:
John Ellson
Created:
2007-07-18 19:17:50 UTC
Size:
846 bytes
patch
obsolete
>#include <stdio.h> >#include <cairo.h> >#include <cairo-svg.h> > >cairo_status_t writer (void *closure, const unsigned char *data, unsigned int length) >{ > if (length == fwrite(data, 1, length, (FILE *)closure)) > return CAIRO_STATUS_SUCCESS; > return CAIRO_STATUS_WRITE_ERROR; >} > >void picture(cairo_t *cr) >{ > cairo_move_to (cr, 5, 5); > cairo_line_to (cr, 5, 95); > cairo_line_to (cr, 95, 95); > cairo_line_to (cr, 95, 5); > cairo_line_to (cr, 5, 5); > > cairo_stroke (cr); >} > >int main(int argc, char *argv[]) >{ > cairo_t *cr; > cairo_surface_t *surface; > FILE *f; > > f = fopen("viewtest.svg", "w"); > > surface = cairo_svg_surface_create_for_stream (writer, f, 100, 100); > cr = cairo_create(surface); > cairo_surface_destroy (surface); > > picture(cr); > > cairo_destroy(cr); > fclose(f); > > return 0; >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 248785
: 159546 |
159547