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

7
LINES

< > BotCompany Repo | #1035963 // addImageScaleOverlay - add overlay to image surface that is scaled with the image

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

Libraryless. Click here for Pure Java version (18967L/120K).

svoid addImageScaleOverlay(ImageSurface is, G2Drawable overlay) {
  if (overlay == null || is == null) ret;
  is.addOverlay(g -> {
    zoomGraphics(g, is.getZoomX(), is.getZoomY());
    overlay.drawOn(g);
  });
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035963
Snippet name: addImageScaleOverlay - add overlay to image surface that is scaled with the image
Eternal ID of this version: #1035963/2
Text MD5: f8ba747514f76ab5003331d371e5900b
Transpilation MD5: 36ec5af403499d943d9d727d0ac28d92
Author: stefan
Category: javax / gazelle 22
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-08-20 16:48:28
Source code size: 218 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 71 / 109
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)