Anonymous

Not logged in

  • English
  • Log in
GiderosMobile

Navigation

  • Main page
  • Recent changes
  • Random page
  • Help

Categories

► Lua API
► Main API
► Plugins

Wiki tools

Wiki tools

  • Special pages

Page tools

Page tools

    Userpage tools

      More

      • What links here
      • Related changes
      • Printable version
      • Permanent link
      • Page information
      • Page logs

      Categories

      Categories

      • Media

      X Media:getPixel

      Namespaces

      • Page
      • Discussion

      Page actions

      • View
      • View source
      • History
      • More
      This page contains changes which are not marked for translation.


      Available since: Gideros 2016.1
      Class: Media

      Description

      Returns r, g, b, a values of pixel at x,y coordinate (RGB are in range of 0 to 255, alpha is in range of 0 to 1).

      Media:getPixel(x, y)
      

      Parameters

      x: (number) x pixel coordinate
      y: (number) y pixel coordinate



      • Media
      • Media.new
      • Media Plugin
      • Mediamanager:deleteFile
      • Mediamanager:getFile
      • Mediamanager:getPicture
      • Mediamanager:isCameraAvailable
      • Mediamanager:playVideo
      • Mediamanager:postPicture
      • Mediamanager:saveFile
      • Mediamanager:takePicture
      • Mediamanager:takeScreenshot
      • X Media:copy
      • X Media:crop
      • X Media:drawFill
      • X Media:drawImage
      • X Media:drawLine
      • X Media:drawText
      • X Media:flipHorizontal
      • X Media:flipVertical
      • X Media:floodFill
      • X Media:getHeight
      • X Media:getPath
      • X Media:getPixel
      • X Media:getRotation
      • X Media:getWidth
      • X Media:resize
      • X Media:resizeHeight
      • X Media:resizeWidth
      • X Media:resizeWidth(newWidth, fixed)
      • X Media:save
      • X Media:setPixel
      • X Media:setRotation
      • X Media:trim
      • Event.MEDIA RECEIVE
      • Event.MEDIA CANCEL
      • Event.VIDEO COMPLETE



      • Main Page
      • Lua API
      • Main API
      • Plugins
      Retrieved from "https://wiki.gideros.rocks/index.php?title=X_Media:getPixel&oldid=16003"
      Category:
      • Media
      Powered by MediaWiki
      • This page was last edited on 11 February 2020, at 22:50.
      • Privacy policy
      • About GiderosMobile
      • Disclaimers