An open API service indexing awesome lists of open source software.

https://github.com/valkryst/jimagepanel

A Java Swing component designed to display a BufferedImage on a JPanel and to automatically resize it, respecting its aspect ratio, to fit within the panel's bounds as it resizes.
https://github.com/valkryst/jimagepanel

bufferedimage image java jpanel swing swing-gui

Last synced: 9 months ago
JSON representation

A Java Swing component designed to display a BufferedImage on a JPanel and to automatically resize it, respecting its aspect ratio, to fit within the panel's bounds as it resizes.

Awesome Lists containing this project

README

          

`JImagePanel` is a Java Swing component designed to display a [BufferedImage](https://docs.oracle.com/en/java/javase/24/docs/api/java.desktop/java/awt/image/BufferedImage.html)
and to automatically resize the image to fit within the panel's bounds.

## Table of Contents

* [Installation](https://github.com/Valkryst/JImagePanel#installation)
* [Gradle](https://github.com/Valkryst/JImagePanel#-gradle)
* [Maven](https://github.com/Valkryst/JImagePanel#-maven)
* [sbt](https://github.com/Valkryst/JImagePanel#-scala-sbt)

## Installation

JImagePanel is hosted on the [JitPack package repository](https://jitpack.io/#Valkryst/JImagePanel)
which supports Gradle, Maven, and sbt.

### ![Gradle](https://i.imgur.com/qtc6bXq.png?1) Gradle

Add JitPack to your `build.gradle` at the end of repositories.

```
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```

Add JImagePanel as a dependency.

```
dependencies {
implementation 'com.github.Valkryst:JImagePanel:2025.5.23'
}
```

### ![Maven](https://i.imgur.com/2TZzobp.png?1) Maven

Add JitPack as a repository.

``` xml


jitpack.io
https://jitpack.io

```
Add JImagePanel as a dependency.

```xml

com.github.Valkryst
JImagePanel
2025.5.23

```

### ![Scala SBT](https://i.imgur.com/Nqv3mVd.png?1) Scala SBT

Add JitPack as a resolver.

```
resolvers += "jitpack" at "https://jitpack.io"
```

Add JImagePanel as a dependency.

```
libraryDependencies += "com.github.Valkryst" % "JImagePanel" % "2025.5.23"
```