Uses 1113K of libraries. Click here for Pure Java version (11662L/62K).
!7 cm WebCamPixelated > DynImageSurface { int width = 16; switchable int interval = 1000; transient BufferedImage lastImage; start { doEvery(interval, rstUpdate()); dm_reloadOnFieldChange interval(); } enhanceFrame { dm_intFieldMenuItem(f, 'width, formTitle := "Set Pixelated Image Width", onSet := r { setField(lastImage := null) }); } afterVisualize { imageSurface_pixelated(imageSurface); } void update { if (imageSurface == null) ret; final BufferedImage img = dm_webCamImage(); temp tempAfterwards(r { lastImage = img }); if (img == null || img == lastImage) ret; if (lastImage == null) setZoom(doubleRatio(img.getWidth(), width)); setImage(resizeImage(img, width)); } }
download show line numbers debug dex old transpilations
Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1019105 |
| Snippet name: | Web Cam, Pixelated [Dyn Module, OK] |
| Eternal ID of this version: | #1019105/24 |
| Text MD5: | b7f6c68964b41a641ef04b8fe5da6f56 |
| Transpilation MD5: | 586af774a75d410d9fe1759c864f2512 |
| Author: | stefan |
| Category: | javax / stefan's os / web cam |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-08-08 17:59:32 |
| Source code size: | 777 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 801 / 3016 |
| Version history: | 23 change(s) |
| Referenced in: | #1019214 - Live Web Cam Face Finder v1 [Dyn Module] |