Libraryless. Click here for Pure Java version (22620L/142K).
svoid g22_highlightRegion(int[] pixels, ImageSurface is, Gazelle22_ImageToRegions itr, Pt mouse default is.mousePosition, bool showRegionsAsOutline) { if (mouse != null && itr != null && itr.regions != null) { int iHighlightedRegion = itr.regions.regionAt(mouse); g22_highlightRegion(pixels, itr, iHighlightedRegion, showRegionsAsOutline); } } svoid g22_highlightRegion(int[] pixels, Gazelle22_ImageToRegions itr, int iRegion, int color default 0xFF00C000, bool showRegionsAsOutline) { if (iRegion == 0) ret; if (showRegionsAsOutline) { RegionBorder_innerPoints x = new(itr.regions, iRegion); gazelle22_highlightRegionOutline(pixels, itr, x); } else itr.regions.markRegionInPixelArray(pixels, iRegion, color); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034037 |
Snippet name: | g22_highlightRegion |
Eternal ID of this version: | #1034037/8 |
Text MD5: | f6f9cfbacca14097c375ee6ba02b4e12 |
Transpilation MD5: | 90f8acdbb4e9786c4407a80ab791dbf7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-16 18:05:14 |
Source code size: | 761 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 208 / 330 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |