Skip to main content
Defines how image sampling is performed when scaling or transforming the image.
  • bilinear
  • nearest
See ImageSampler for usage.
function init(self: DrawImage, context: Context): boolean
  self.myImage = context:image('myImage')
  self.sampler = ImageSampler(
    'clamp',
    'clamp',
    'bilinear'
  )

  return true
end