Searched defs:surface (Results 1 - 12 of 12) sorted by relevance

/inkscape/src/display/
H A Ddrawing-context.cpp13 #include "display/drawing-surface.h"
73 DrawingContext::DrawingContext(cairo_surface_t *surface, Geom::Point const &origin) argument
75 , _surface(new DrawingSurface(surface, origin))
H A Dcanvas-arena.cpp23 #include "display/drawing-surface.h"
363 sp_canvas_arena_render_surface (SPCanvasArena *ca, cairo_surface_t *surface, Geom::IntRect const &r) argument
368 Inkscape::DrawingContext dc(surface, r.min());
H A Ddrawing-surface.cpp3 * Cairo surface that remembers its origin.
13 #include "display/drawing-surface.h"
25 * Drawing surface that remembers its origin.
30 * and the "physical space" (surface pixels). For example, patterns
35 * the Cairo surface it wraps on the first call to createRawContext()
40 * Creates a surface with the given physical extents.
41 * When a drawing context is created for this surface, its pixels
52 * Creates a surface with the given logical and physical extents.
53 * When a drawing context is created for this surface, its pixels
56 * @param logbox Logical extents of the surface
71 DrawingSurface(cairo_surface_t *surface, Geom::Point const &origin) argument
316 cairo_surface_t *surface = ink_cairo_surface_copy(_surface); local
[all...]
H A Dnr-filter-slot.cpp119 // create empty surface
210 void FilterSlot::_set_internal(int slot_nr, cairo_surface_t *surface) argument
213 // this way assigning a surface to a slot it already occupies will not cause errors
214 cairo_surface_reference(surface);
221 _slots[slot_nr] = surface;
224 void FilterSlot::set(int slot_nr, cairo_surface_t *surface) argument
226 g_return_if_fail(surface != NULL);
231 _set_internal(slot_nr, surface);
H A Ddrawing-context.h42 DrawingContext(cairo_surface_t *surface, Geom::Point const &origin);
105 void setSource(cairo_surface_t *surface, double x, double y) { argument
106 cairo_set_source_surface(_ct, surface, x, y);
124 DrawingSurface *surface() { return _surface; } // Needed to find scale in drawing-item.cpp function in class:Inkscape::DrawingContext
127 DrawingContext(cairo_t *ct, DrawingSurface *surface, bool destroy);
H A Dcairo-templates.h38 * Differences in input surface formats are handled transparently. In future, this template
48 // 1. Cairo ARGB32 surface strides are always divisible by 4
51 // 4. Output surface is ARGB32 if at least one input is ARGB32
185 // 1. Cairo ARGB32 surface strides are always divisible by 4
188 // 4. Output surface is A8 if input is A8
310 * Synthesize surface pixels based on their position.
313 * @param out Output surface
314 * @param out_area The region of the output surface that should be synthesized
321 // 1. Cairo ARGB32 surface strides are always divisible by 4
383 SurfaceSynth(cairo_surface_t *surface) argument
[all...]
H A Dcairo-utils.cpp134 * while a Cairo image surface will contain:
144 * This is implemented by creating a GdkPixbuf and a Cairo image surface
149 /** Create a pixbuf from a Cairo surface.
150 * The constructor takes ownership of the passed surface,
349 * Converts the pixbuf to Cairo pixel format and returns an image surface
352 * The returned surface is owned by the GdkPixbuf and should not be freed.
388 /** Retrieves the original compressed data for the surface, if any.
716 get_cairo_surface_ci(cairo_surface_t *surface) { argument
717 void* data = cairo_surface_get_user_data( surface, &ink_color_interpolation_key );
725 /** Set the color_interpolation_value for a Cairo surface
728 set_cairo_surface_ci(cairo_surface_t *surface, SPColorInterpolation ci) argument
912 ink_cairo_surface_get_width(cairo_surface_t *surface) argument
920 ink_cairo_surface_get_height(cairo_surface_t *surface) argument
926 ink_cairo_surface_average_color_internal(cairo_surface_t *surface, double &rf, double &gf, double &bf, double &af) argument
949 ink_cairo_surface_average_color(cairo_surface_t *surface) argument
961 ink_cairo_surface_average_color(cairo_surface_t *surface, double &r, double &g, double &b, double &a) argument
976 ink_cairo_surface_average_color_premul(cairo_surface_t *surface, double &r, double &g, double &b, double &a) argument
1043 ink_cairo_surface_srgb_to_linear(cairo_surface_t *surface) argument
1086 ink_cairo_surface_linear_to_srgb(cairo_surface_t *surface) argument
1173 cairo_surface_t *surface = static_cast<cairo_surface_t*>(data); local
[all...]
/inkscape/src/helper/
H A Dpixbuf-ops.cpp140 cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, width, height); local
142 if (cairo_surface_status(surface) == CAIRO_STATUS_SUCCESS) {
143 Inkscape::DrawingContext dc(surface, Geom::Point(0,0));
148 inkpb = new Inkscape::Pixbuf(surface);
154 cairo_surface_destroy(surface);
/inkscape/src/ui/dialog/
H A Dprint.cpp89 // so we'll use a surface pattern blat instead...
126 cairo_surface_t *surface = cairo_get_target(cr); local
130 bool ret = ctx->setSurfaceTarget (surface, true, &ctm);
H A Dfiledialogimpl-win32.cpp1400 // Prepare the drawing surface
1405 Cairo::RefPtr<Win32Surface> surface = Win32Surface::create(hMemDC); local
1406 Cairo::RefPtr<Context> context = Context::create(surface);
1544 surface->finish();
/inkscape/src/extension/internal/pdfinput/
H A Dpdf-input.cpp482 * \brief Copies image data from a Cairo surface to a pixbuf
488 static void copy_cairo_surface_to_pixbuf (cairo_surface_t *surface, argument
498 cairo_width = cairo_image_surface_get_width (surface);
499 cairo_height = cairo_image_surface_get_height (surface);
567 // Copy the thumbnail image from the Cairo surface
614 // Create new Cairo surface
883 cairo_surface_t* surface = cairo_svg_surface_create_for_stream(Inkscape::Extension::Internal::_write_ustring_cb, local
890 cairo_svg_surface_restrict_to_version( surface, CAIRO_SVG_VERSION_1_2 );
892 cairo_t* cr = cairo_create(surface);
898 cairo_surface_destroy(surface);
[all...]
/inkscape/src/extension/internal/
H A Dcairo-render-context.cpp64 // include support for only the compiled-in surface types
190 * \brief Creates a new render context which will be compatible with the given context's Cairo surface
192 * \param width width of the surface to be created
193 * \param height height of the surface to be created
202 cairo_surface_t *surface = cairo_surface_create_similar(cairo_get_target(_cr), CAIRO_CONTENT_COLOR_ALPHA, local
204 new_context->_cr = cairo_create(surface);
205 new_context->_surface = surface;
222 // format cannot be set on an already initialized surface
660 // Cairo surface is expecting the mask to be 96 dpi.
672 TRACE(("mask surface
796 cairo_surface_t *surface = NULL; local
834 setSurfaceTarget(cairo_surface_t *surface, bool is_vector, cairo_matrix_t *ctm) argument
847 _finishSurfaceSetup(cairo_surface_t *surface, cairo_matrix_t *ctm) argument
[all...]

Completed in 30 milliseconds