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

10
LINES

< > BotCompany Repo | #1036095 // WrappedBufferedImage - BufferedImage wrapped as IRGBImage

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

Libraryless. Click here for Pure Java version (9223L/51K).

srecord WrappedBufferedImage(BufferedImage image) is IRGBImage {
  public int getWidth() { ret image.getWidth(); }
  public int getHeight() { ret image.getHeight(); }
  
  public BufferedImage getBufferedImage() { ret image; }
  
  public int getIntPixel(int x, int y) {
    ret image.getRGB(x, y);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1036095
Snippet name: WrappedBufferedImage - BufferedImage wrapped as IRGBImage
Eternal ID of this version: #1036095/2
Text MD5: 28e2b3b02b66c4522d75a8d7401a4b0c
Transpilation MD5: d166adce18d10986b0c4b71908c870ce
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-12 17:23:47
Source code size: 313 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 116 / 176
Version history: 1 change(s)
Referenced in: [show references]