From 038be9b694ccece1794d80c5b0ae1b2e15ce6481 Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Fri, 17 Jan 2020 15:55:08 +0100 Subject: [PATCH] Fix for OPENRNDR 0.3.38-rc.4 for orx-runway --- orx-runway/src/main/kotlin/RunwayHttp.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/orx-runway/src/main/kotlin/RunwayHttp.kt b/orx-runway/src/main/kotlin/RunwayHttp.kt index 7bed08e5..85e3651d 100644 --- a/orx-runway/src/main/kotlin/RunwayHttp.kt +++ b/orx-runway/src/main/kotlin/RunwayHttp.kt @@ -2,10 +2,9 @@ package org.openrndr.extra.runway import com.google.gson.Gson import org.openrndr.draw.ColorBuffer -import org.openrndr.draw.FileFormat +import org.openrndr.draw.ImageFileFormat import java.io.ByteArrayInputStream import java.io.File -import java.io.IOException import java.net.HttpURLConnection import java.net.SocketTimeoutException import java.net.URL @@ -15,7 +14,7 @@ import java.util.* /** * Construct a base64 representation of an encoded image */ -fun ColorBuffer.toData(format: FileFormat = FileFormat.JPG): String { +fun ColorBuffer.toData(format: ImageFileFormat = ImageFileFormat.JPG): String { val tempFile = File.createTempFile("orx-runway", null) saveToFile(tempFile, format, async = false) val ref = File(tempFile.absolutePath)