Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1034972 // setPixels

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (5080L/28K).

svoid setPixels(BufferedImage img, Iterable<Pt> points, Color color) {
  if (img == null) ret;
  fOr (p : points)
    img.setRGB(p.x, p.y, colorToIntOpaque(color));
}

Author comment

Began life as a copy of #1031353

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034972
Snippet name: setPixels
Eternal ID of this version: #1034972/1
Text MD5: 59e428ea2ac0082bf990544763999ecc
Transpilation MD5: e2ac0c99d2866e7184bedbdbb9b17da1
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-03-19 18:22:14
Source code size: 170 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 119 / 182
Referenced in: [show references]