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).

1  
srecord WrappedBufferedImage(BufferedImage image) is IRGBImage {
2  
  public int getWidth() { ret image.getWidth(); }
3  
  public int getHeight() { ret image.getHeight(); }
4  
  
5  
  public BufferedImage getBufferedImage() { ret image; }
6  
  
7  
  public int getIntPixel(int x, int y) {
8  
    ret image.getRGB(x, y);
9  
  }
10  
}

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: 118 / 180
Version history: 1 change(s)
Referenced in: [show references]