×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,034

    pixel information

    hi...is there any way through which i can get pixel information of a clicked pic.

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: pixel information

    Hi,

    Are you looking for it CFbsBitmap::GetPixel?
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    434

    Re: pixel information

    Quote Originally Posted by vineet.jain View Post
    hi...is there any way through which i can get pixel information of a clicked pic.
    IMPORT_C TUint32 *DataAddress() const;
    Gets the address of the first pixel in the bitmap. The first pixel is at the top-left.

    if you want to Ergodic all the pixes, use this.
    www.faxinwen.com 发新闻
    阅读分享__移动与互联网

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,034

    Re: pixel information

    hi im using the following code to get the rgb value of each pixel of a pic:

    TRgb rgb;
    for(TInt i=0; i<200; i++)
    {
    for(TInt j=0; j<200; j++)
    {
    iBmp->GetPixel(rgb,TPoint(i,j));
    rgbData.Append(rgb);

    }

    }
    }

    the problem is that the value which is getting appended in rgbData array is a constant hex value and is not changing as the loop is proceeding .
    But the variable rgb has an self initialized varible ivalue which consists of a 10 digit no. which constantly changes as the loop gets proceeds.
    i don't no why there is always a const. value in rgb variable, inspite of this value getting appended in rgbData array.
    rgbData if declared as: RArray<TRgb>rgbData;

  5. #5
    Regular Contributor
    Join Date
    Apr 2006
    Location
    India
    Posts
    383

    Re: pixel information

    Hi!

    Please have look at class TBitmapUtil in SDK. It might serve your purpose.

    GetPixel()
    IMPORT_C TUint32 GetPixel() const;
    Description
    Gets the value of the pixel at the current pixel position.

    In normal usage, the value returned will immediately be used as the parameter to a call to SetPixel(). To remove the overhead of constructing a TRgb, the function uses a TUint32 rather than a TRgb to hold an RGB value.

    Return value
    TUint32 The value of the pixel at the current pixel position.
    GetPixel returns the number in hexadecimal system.. like e.g. 0xffffff for white, 0x000000 for black.

    Hope it helps.
    Regards,
    Shilpa Kulkarni

Similar Threads

  1. SMS Message associated information?
    By appdeveloper in forum General Messaging
    Replies: 2
    Last Post: 2009-08-18, 05:51
  2. Replies: 7
    Last Post: 2009-01-10, 16:58
  3. Information note problem in landscape mode
    By s4028469 in forum Symbian User Interface
    Replies: 2
    Last Post: 2007-09-07, 08:16
  4. Information from the sis file?
    By mayankkedia in forum Symbian
    Replies: 7
    Last Post: 2007-07-11, 11:16
  5. Can't get network information...!!!
    By patrickfrei in forum Symbian
    Replies: 2
    Last Post: 2006-11-28, 09:36

Posting Permissions

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