Transpose the surface matrix of an x3p object. Also adjust meta information.
Usage
x3p_transpose(x3p)
transpose_x3p(x3p)
Examples
logo <- x3p_read(system.file("csafe-logo.x3p", package="x3ptools"))
dim(logo$surface.matrix)
#> [1] 741 419
if (FALSE) { # \dontrun{
x3p_image(logo)
} # }
# transpose the image
logotp <- x3p_transpose(logo)
dim(logotp$surface.matrix)
#> [1] 419 741
if (FALSE) { # \dontrun{
x3p_image(logotp)
} # }