1 | svoid imageSurface_pixelated(ImageSurface imageSurface) { |
2 | if (imageSurface == null) ret; |
3 | imageSurface.setDoubleBuffered(true); // solve flickering when partially obscured |
4 | imageSurface.noAlpha = true; |
5 | imageSurface.interpolationMode = RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR; |
6 | repaint(imageSurface); |
7 | } |
8 | |
9 | svoid imageSurface_pixelated(ImageSurface imageSurface, bool pixelated) { |
10 | if (pixelated) |
11 | imageSurface_pixelated(imageSurface); |
12 | else |
13 | imageSurface_unpixelated(imageSurface); |
14 | } |
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: | #1019213 |
Snippet name: | imageSurface_pixelated - sets multiple options |
Eternal ID of this version: | #1019213/5 |
Text MD5: | d342e50a2650c7be3ffa0810e5ad7426 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-12-26 18:51:31 |
Source code size: | 520 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 435 / 458 |
Version history: | 4 change(s) |
Referenced in: | [show references] |