Skip to content

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.

License

Notifications You must be signed in to change notification settings

Valkryst/JImagePanel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JImagePanel is a Java Swing component designed to display a BufferedImage and to automatically resize the image to fit within the panel's bounds.

Table of Contents

Installation

JImagePanel is hosted on the JitPack package repository which supports Gradle, Maven, and sbt.

Gradle 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 Maven

Add JitPack as a repository.

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Add JImagePanel as a dependency.

<dependency>
    <groupId>com.github.Valkryst</groupId>
    <artifactId>JImagePanel</artifactId>
    <version>2025.5.23</version>
</dependency>

Scala SBT 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"

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages