Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Jai

Empfohlene Antworten

Veröffentlicht

Hallo zusammen.

Ich habe das "Problem" das ich Bilder in sämtlichen Formaten (bis auf GIF wegen Patentrecht) abspeichern möchte.

Dafür gibts ja nun die Java Advanced Imaging JAI Bibliothek.

Kennt sich damit jemand aus? ONG-Format kann ich abspreichern aber JPEG oder BMB oder andere Geschichten bekomm ich mit JAI nicht hin.

Hat da jemand Erfahrung?

Was muss ich z.b. hier bei encodeParam benutzen um ein JPEG zu generieren?

RenderedOp op = JAI.create("filestore", image, filename,

filetype, encodeParam);

Vielen Dank für Antworten

Yeah ich hab das Problem wahrscheinlich gelöst.

Es ist wichtig bei der Erzeugung der BufferedImage-Instanz folgende Konstante zu benutzen: TYPE_3BYTE_BGR

bei diesem Konstruktor bei IndexColorModel:

BufferedImage(int width, int height, int imageType, IndexColorModel cm)

Constructs a BufferedImage of one of the predefined image types: TYPE_BYTE_BINARY or TYPE_BYTE_INDEXED.

Gruss

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.