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

560
LINES

< > BotCompany Repo | #1004553 // ImageSurface

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

Libraryless. Click here for Pure Java version (20393L/126K).

java.lang.RuntimeException: Unknown token 2: <: 
Warning: session_start(): open(/var/lib/php/sessions/sess_8246l7og563jhg5pncvj9nudi6, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
{"1000658":"print function (=System.out.println + logging in memory)","1000893":"popup function","1001266":"getProgramDir","1001428":"getFrame (get frame of Swing component)","1001598":"assertTrue - no longer accepts a function returning a boolean","1001634":"cloneList - now safely clones a synchroList (synchronizing on it)","1001664":"max function","1001741":"or function","1001796":"min function","1001865":"neq function","1001958":"loadImage","1002348":"nempty - not empty","1002470":"RGBImage","1002911":"intToHex","1003099":"takeLast function (take last n elements of a list or characters of a string)","1003557":"bindToComponent - do something on showing\/un-showing of component","1003723":"loadBufferedImage - also takes a file path","1004075":"swing - extended synonym of swingAndWait","1004223":"loadImage2 - synonym of loadBufferedImage","1004224":"resizeImage - preserves transparency, defaults to smooth scaling","1004233":"disposeFrame","1004442":"showFormTitled (+ showForm_makePanel) - show input form [Swing]","1004498":"showFullScreen - Exitable with Alt+F4, at least here it does so. Also adding Escape","1004534":"enclosingScrollPane","1004553":"ImageSurface","1004554":"class Surface with imageType = 1","1004637":"messageBox","1005301":"pcallF - synonym of pcallFunction","1005390":"class Rect - persistable version of Rectangle","1005517":"ImageSurfaceSelector - provide rectangular selection by mouse to ImageSurface","1005519":"_print - synonym of print where print symbol is obstructed","1005520":"awtLater - synonym of swingLater + more","1005718":"class Pt - persistable\/portable version of Point","1005735":"addMenuItem - add JMenuItem to JMenu\/JPopupMenu\/Menu","1005867":"jTextField - with undo","1005990":"printVars - print a bunch of vars","1006021":"jHandleFileDrop - makes any JComponent accept file drops (drag&drop)","1006059":"getImageFromClipboard","1006060":"copyImageToClipboard","1006455":"getTextTrim - getText() from JTextComponent, trim","1006597":"showFullScreenImageSurface","1007285":"onResize","1007315":"disableSubmitButton - disable button called \"Submit\" (default text in showForm)","1007318":"enableSubmitButton - enable button called \"Submit\" (default text in showForm)","1009822":"whiteImage - make all-white BufferedImage with defined size","1010158":"hasTransparency","1010659":"toRectangle","1013362":"close","1014702":"getMinimumSize","1015290":"VF2 - void function with two arguments","1015303":"repaint","1015472":"MakesBufferedImage","1015561":"selectFile - synonym of inputFilePath - show input form for a file path","1016133":"getBackground","1016209":"componentPopupMenu2 - passes through WeakReference of component","1016240":"getParent","1016672":"setImage","1016927":"selectImageSnippet - synonym of selectSnippetID_v1","1017142":"cloneClipBufferedImage - make actual copy","1019012":"getWidth","1019013":"getHeight","1019149":"imagesHaveSameSize","1019213":"imageSurface_pixelated - sets multiple options","1020054":"getPreferredSize","1020733":"syncL - get size of collection or map while synchronizing on it. also, make a synchronized ArrayList","1022666":"IVF1 - void function with one argument (interface version)","1024565":"imageSurfaceOnHover","1026413":"closeAllAndClear","1027541":"uploadPNGToImageServer - synonym of uploadToImageServerIfNotThere","1032040":"saveImage","1032254":"getPixel - get pixel from BufferedImage","1033204":"scaffoldingEnabled","1033321":"BoolVar (never null!)","1033722":"componentShowingVar - a variable that always indicates if a component is showing (so you can query this without going to Swing thread)","1033786":"ImageSurfaceMouseHandler","1033811":"G2Drawable","1033916":"printIfScaffoldingEnabled","1034386":"jscroll_center_borderless - synonym of jscroll_centered_borderless","1034429":"revalidateIncludingFullCenterContainer - revalidate that also handles components contained in jscroll_center","1034644":"imageSize","1035498":"jMenuItemStayCheckedOnClick","1035641":"render - synonym of drawableToImage","1035775":"onEnclosingScrollPaneResize","1035962":"cloneGraphics - clone a Graphics2D object"} at main.fail(m1008705.java:1589) at main$jsonDecode_Y.fail_base(m1008705.java:14008) at main$jsonDecode_Y.fail(m1008705.java:14006) at main$jsonDecode_Y.parseExpr(m1008705.java:14058) at main$jsonDecode_Y.parse(m1008705.java:14012) at main.jsonDecode(m1008705.java:13990) at main.jsonDecodeMap(m1008705.java:12844) at main.getSnippetTitles(m1008705.java:10820) at main$JavaXHyperlinker.codeToHTML(m1008705.java:6209) at main.html2(m1008705.java:85) at main.html(m1008705.java:67) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.callOpt_withVarargs(m1008705.java:4387) at main.callOpt(m1008705.java:3326) at main.callHtmlMethod2(m1008705.java:11404) at main$MyHTTPD$1.get(m1008705.java:7337) at main$MyHTTPD$1.get(m1008705.java:1) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) at java.base/java.lang.reflect.Method.invoke(Method.java:577) at main.invokeMethod(m1008705.java:1601) at main.safeCallF(m1008705.java:642) at main.callF(m1008705.java:611) at main$MyHTTPD.serve(m1008705.java:7373) at main$NanoHTTPD.serve_2(m1008705.java:9572) at main$NanoHTTPD.serve(m1008705.java:9553) at main$NanoHTTPD$HTTPSession.execute(m1008705.java:8453) at main$NanoHTTPD$ClientHandler.run(m1008705.java:7829) at java.base/java.lang.Thread.run(Thread.java:833)

download  show line numbers  debug dex  old transpilations   

Travelled to 20 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1004553
Snippet name: ImageSurface
Eternal ID of this version: #1004553/166
Text MD5: a8fda1b0ec37bb45eada4c195f7d096e
Transpilation MD5: 3a0e63e26f98a8ed746c71124d8ce927
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-08-18 17:16:29
Source code size: 16313 bytes / 560 lines
Pitched / IR pitched: No / No
Views / Downloads: 2464 / 8764
Version history: 165 change(s)
Referenced in: [show references]