Artifact 00fe546fbaa1f56f1adbbf8268d2b9e3479ac8c5:
- File
core/place.crimp
— part of check-in
[1da2e834b8]
at
2011-11-18 02:24:25
on branch infinite-plane
— New branch.
Embed images into the infinite 2d plane, i.e. make them bounded rectangles with a location in that plane. We had a start on that with the operators for projective warp, storing the origin point in the user-meta data. This information is now in the C level structures.
This commit provides the basic change, plus new accessors for the geometry data, and updates all users of said geometry data in C to use these new accessors.
The semantics of the various operations which could make use of the location information has not changed yet. This is for future commits in this branch. (user: andreask size: 349) [more...]
place Tcl_Obj* imageObj int x int y crimp_image* image; crimp_input_any (imageObj, image); image = crimp_dup (image); crimp_place (image, x, y); Tcl_SetObjResult (interp, crimp_new_image_obj(image)); return TCL_OK; /* vim: set sts=4 sw=4 tw=80 et ft=c: */ /* * Local Variables: * mode: c * c-basic-offset: 4 * fill-column: 78 * End: */