V Vircop Member Licensed User Longtime User Dec 11, 2012 #1 I have to translate java code that looks as follows: B4X: _off_img = _app.createImage( _w, _h ); _off_gfx = _off_img.getGraphics(); _mis = new MemoryImageSource( _w, _h, new DirectColorModel( 24, 0x00ff0000, 0x0000ff00, 0x000000ff ), _pixels, 0, _w ); _mis.setAnimated( true ); _mis_img = _app.createImage( _mis ); _off_img is java type Image and _off_gfx is java type Graphics...
I have to translate java code that looks as follows: B4X: _off_img = _app.createImage( _w, _h ); _off_gfx = _off_img.getGraphics(); _mis = new MemoryImageSource( _w, _h, new DirectColorModel( 24, 0x00ff0000, 0x0000ff00, 0x000000ff ), _pixels, 0, _w ); _mis.setAnimated( true ); _mis_img = _app.createImage( _mis ); _off_img is java type Image and _off_gfx is java type Graphics...
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2012 #2 You will need to create a small library for this code. Upvote 0