x3p_flip_y | R Documentation |
One of the major changes between the previous two ISO standards is the way the y axis is defined in a scan. The entry (0,0) used to refer to the top left corner of a scan, now it refers to the bottom right corner, which means that all legacy x3p files have to flip their y axis in order to conform to the newest ISO norm.
x3p_flip_y(x3p)
y_flip_x3p(x3p)
x3p |
x3p object |
x3p object in which the y coordinate is reversed.
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
dim(logo$surface.matrix)
## Not run:
x3p_image(logo)
## End(Not run)
# flip the y-axis for the old ISO standard:
logoflip <- x3p_flip_y(logo)
dim(logoflip$surface.matrix)
## Not run:
x3p_image(logoflip)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.