Image creation
Code: "image_create.py". Programming language: Python DMelt Version 1. Last modified: 05/26/2016. License: Pro
https://datamelt.org/code/cache/image_create_1437.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.



from ij import *
from ij.gui import *
from ij.process import *
from ij.measure import *
from jhplot  import *

# create a random image
from java.util import Random
imp = IJ.createImage("A Random Image", "8-bit", 200, 200, 1)
Random().nextBytes(imp.getProcessor().getPixels())
imp.show()


You see the box below because you did not login.