rex_canvas_pixelcache
Plugin, ACE table, Discussion thread
Dependence: canvas plugin
Dependence: canvas plugin
Introduction
Read pixels from canvas, modify, then write back to canvas..
Read pixels from canvas, modify, then write back to canvas..
Usage
Sample capx
Sample capx
Cache all
Call "Action:Cache all" to cache current color of pixels, then pick color by these expressions which are the same with canvas plugin.
Call "Action:Cache all" to cache current color of pixels, then pick color by these expressions which are the same with canvas plugin.
- Expression:redAt
- Expression:greenAt
- Expression:blueAt
- Expression:alphaAt
- Expression:rgbaAt , which return a string
Cache an area
Call "Action:Cache area" could cache at an area. Expressions of picking color will return 0, or "black" if pixel does not been cached.
Get boundaries of cached area by these expressions
Call "Action:Cache area" could cache at an area. Expressions of picking color will return 0, or "black" if pixel does not been cached.
Get boundaries of cached area by these expressions
- Expression:LeftX
- Expression:RightX
- Expression:TopY
- Expression:BottomY
Compare with color picking in canvas plugin
Picking colors in canvas plugin is slowly since each picking expression will copy image data again. This behavior saves image data into an array then pick from it.
Picking colors in canvas plugin is slowly since each picking expression will copy image data again. This behavior saves image data into an array then pick from it.