×

Discussion Board

Results 1 to 2 of 2

Thread: rgb

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    17

    rgb

    will this code segment give the rgb data of the pixel at i,j position???

    int[] imgFaceData = new int[1];
    imgFace.getRGB(imgFaceData, 0, imgFace.getWidth(), i, j, 1, 0);


    will imageFaceData[0] contain the r, g, b values of pixel position (i, j)

    its urgent so please

    thanks in advance

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: rgb

    Useful for you

    The scanlength specifies the relative offset within the array between the corresponding pixels of consecutive rows. In order to prevent rows of stored pixels from overlapping, the absolute value of scanlength must be greater than or equal to width. Negative values of scanlength are allowed. In all cases, this must result in every reference being within the bounds of the rgbData array.

    Consider P(a,b) to be the value of the pixel located at column a and row b of the Image, where rows and columns are numbered downward from the top starting at zero, and columns are numbered rightward from the left starting at zero. This operation can then be defined as:

    rgbData[offset + (a - x) + (b - y) * scanlength] = P(a, b);

Similar Threads

  1. How to draw RGB arrays to screen(after YUV to RGB)
    By kdwx in forum Symbian Media (Closed)
    Replies: 19
    Last Post: 2009-01-05, 13:06
  2. Incorrect rgb values for jpg images on S40 3rd ed
    By bjudfar in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-05-29, 16:34
  3. simple script to display rgb image
    By gojkoa in forum Symbian
    Replies: 1
    Last Post: 2005-11-21, 09:33
  4. Does Symbian supports 16 bit BMP in RGB?
    By putek20 in forum Symbian
    Replies: 1
    Last Post: 2003-11-10, 21:48
  5. display of RGB Data
    By amrutz in forum Symbian
    Replies: 1
    Last Post: 2003-02-09, 15:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×