R/ImportImage.R

Defines functions ImportImage

# Import a Power Curve image
ImportImage <- function(imagePath, rotate)
{
  if(missing(rotate))
  {
    rotate = 0
  }
  #img <- readbitmap::read.bitmap(imagePath)
  img <- read.bitmap(imagePath)
  op <- par(mar = c(0, 0, 0, 0))
  on.exit(par(op))
  plot.new()
  rasterImage(img, 0, 0, 1, 1, angle = rotate)
}

Try the WindCurves package in your browser

Any scripts or data that you put into this service are public.

WindCurves documentation built on May 1, 2022, 9:05 a.m.