Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Feb 11, 2024
1 parent f220bb6 commit 1f00d92
Showing 1 changed file with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ import androidx.compose.ui.test.ExperimentalTestApi
import androidx.compose.ui.test.runComposeUiTest
import androidx.compose.ui.test.runDesktopComposeUiTest
import androidx.compose.ui.test.runSkikoComposeUiTest
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.LayoutDirection
import androidx.compose.ui.unit.toIntRect
import androidx.compose.ui.unit.*
import kotlinx.coroutines.Dispatchers
import org.jetbrains.skia.Bitmap
import org.jetbrains.skia.Surface
Expand Down Expand Up @@ -87,6 +84,20 @@ actual fun captureToImageeee(content: @Composable () -> Unit): ImageBitmap {
// }
// val img = scene.render()
// return Bitmap.makeFromImage(img).asComposeImageBitmap()
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////
// MultiLayerComposeScene(
// layoutDirection = LayoutDirection.Ltr,
// invalidate = { render(0) },
// // density = Density(1f),
// // coroutineContext = Dispatchers.Unconfined,
// // composeSceneContext = TestComposeSceneContext()
// ).apply {
// boundsInWindow = IntSize(surface.width, surface.height).toIntRect()
// }
}


Expand Down

0 comments on commit 1f00d92

Please sign in to comment.