Cogent Core Docs

0%

Loading...

Static preview:

Cogent Core DocsWidgetsMedia

Images

Cogent Core provides customizable images that allow you to render any image.

You should load images by embedding them so that they work across all platforms:

Then, you can open an image from your embedded filesystem:

You can change the size of an image:

You can set an image directly to any bounded Go image:

You can also open images directly from the system filesystem, but this is not recommended for images built into your app, since they will end up in a different location on different platforms: