Bug 211 - Screenshot should read any screen rectangle
Summary: Screenshot should read any screen rectangle
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2006-03-23 08:23 CET by Sven Gothel
Modified: 2015-09-27 03:15 CEST (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:48:35 CET


---- Reported by davelloyd 2006-03-23 08:23:50 ----

It would be very useful if the Screenshot class could select any screen
rectangle. Thus the core method would have the following signature:
Code:
public static BufferedImage readToBufferedImage (int x, int y, int width, int
height, boolean alpha) throws GLException;

Change required is to simply pass in x, y to glReadPixels instead of 0,0



---- Additional Comments From kbr 2006-03-25 15:47:20 ----

Added new overloaded entry points accepting starting x and y coordinates.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT  ---

This bug was previously known as _bug_ 211 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=211