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.
- Host: GitHub
- URL: https://github.com/valkryst/jimagepanel
- Owner: Valkryst
- License: apache-2.0
- Created: 2025-05-24T01:35:34.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-24T23:41:20.000Z (about 1 year ago)
- Last Synced: 2025-08-17T08:21:40.295Z (10 months ago)
- Topics: bufferedimage, image, java, jpanel, swing, swing-gui
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
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
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
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
Add JitPack as a resolver.
```
resolvers += "jitpack" at "https://jitpack.io"
```
Add JImagePanel as a dependency.
```
libraryDependencies += "com.github.Valkryst" % "JImagePanel" % "2025.5.23"
```