Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 594651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:58:36+00:00 2026-05-13T15:58:36+00:00

I use an interface of RenderedImage for reading a tif image. How can I

  • 0

I use an interface of RenderedImage for reading a tif image.
How can I get all rgb values of this picture in a 2d-Array like this:

red[0][128] = 120; // means x=0, y=128, red value = 120
// the value 120 is the value I have to determine (and oall other rgb values)!

Does anyone know this?

Thanks a lot for your help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T15:58:36+00:00Added an answer on May 13, 2026 at 3:58 pm

    getData() returns a Raster, which has a getData() method.

    Can you call YourRenderedImage.getData().getPixel(int x, int y, int iArray[]) to get your RGB values?

    JavaDoc: Returns the samples in an array of int for the specified pixel. An ArrayIndexOutOfBoundsException may be thrown if the coordinates are not in bounds.

    Raster.getPixel() – JavaDoc

    I believe the elements returned by the int array represent: Red, Green, Blue, Alpha, and Hex key, but I don’t know for sure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am learning how to use Interface of C#, I reading this artcile :
How i can use IDisposable interface with asp.net mvc.
in my view Inherits=System.Web.Mvc.ViewUSerControl<Model.Person> How can I use an interface to restrict what the
I get answer in: Object modelling problem that I should use interface instead class
All the examples of Silverlight using MVVM use interface named IPropertyChanged. What is the
Okay, I need some help here. This is the same old "can't use an
Can we use interface and implementation file in one in cocoa? If yes than
As you know, we can use Interface and Implements in PHP5. I used Interface
It seems like I need to use @interface ViewController : UIViewController <UITextFieldDelegate> and -
On iOS, if we use Interface Builder, we can create Outlet and Action easily.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.