[ 
https://issues.apache.org/jira/browse/PDFBOX-4974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212495#comment-17212495
 ] 

Robert Fink edited comment on PDFBOX-4974 at 10/12/20, 4:55 PM:
----------------------------------------------------------------

The images are coming:
 - on the one side from the webcam which are stored as WritableImage or 
BufferedImage
 - on the other side from disk (geospatial images) which are stored as 
BufferedImage


was (Author: robertoni):
The images are coming:
- on the one side from a (hugely refactored) library called LTI-Civil - it 
captures images from the webcam and store them as WritableImage or BufferedImage
- on the other side from a libray called GDAL - it reads geospatial images from 
disk and store them as BufferedImage

> PDImageXObject based on WritableImage
> -------------------------------------
>
>                 Key: PDFBOX-4974
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4974
>             Project: PDFBox
>          Issue Type: New Feature
>          Components: PDModel
>    Affects Versions: 2.0.0
>            Reporter: Robert Fink
>            Priority: Major
>              Labels: javafx
>
> The goal is to work with a WritableImage from JavaFX in addition to a 
> BufferedImage from Swing.
> My proposal for a new feature are the following. 
> To extend the factory classes:
>  - CCITTFactory by the method:
>  createFromImage(PDDocument document, WritableImage image)
>  - JPEGFactory by the methods:
>  createFromImage(PDDocument document, WritableImage image)
>  createFromImage(PDDocument document, WritableImage image, float quality)
>  createFromImage(PDDocument document, WritableImage image, float quality, int 
> dpi)
>  - LosslessFactory by methods:
>  createFromImage(PDDocument document, WritableImage image)
> To extend the PDImageXObject class:
>  * by the methods:
> getWritableImage()
> getWritableImage(Rectangle region, int subsampling)
> Until now there is a need to use the class SwingFXUtils to do the conversion 
> from WritableImage to BufferedImage or vice versa.
>  This new feature should come in handy for all JavaFX developers.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to