obtaining resolution of import texture
This commit is contained in:
		@ -11,6 +11,11 @@ import tornadofx.Controller
 | 
			
		||||
import java.net.InetAddress
 | 
			
		||||
import java.util.*
 | 
			
		||||
import java.util.Calendar
 | 
			
		||||
import java.io.File
 | 
			
		||||
import javax.imageio.ImageIO
 | 
			
		||||
import java.awt.image.BufferedImage
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -50,12 +55,10 @@ class RootController : Controller() {
 | 
			
		||||
    fun importTexture(path: String, name: String, tags: ObservableList<String>) {
 | 
			
		||||
 | 
			
		||||
        val cal = Calendar.getInstance() //calendar obj with current time
 | 
			
		||||
        val bimg = ImageIO.read(File(path)) //image for obtaining resolution
 | 
			
		||||
 | 
			
		||||
        println(cal.time)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        println("Height: ${bimg.getHeight()} With: ${bimg.getWidth()}")
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user