Get pixel values from pic

This is a discussion on Get pixel values from pic within the Windows Programming forums, part of the Platform Specific Boards category; Hi. I wrote some code for getting pixel values from picture. What exactly is this values? Can i get this ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    43

    Get pixel values from pic

    Hi. I wrote some code for getting pixel values from picture.
    What exactly is this values? Can i get this values but like circle....? Start from the centre then go up then right and...
    like that. Its possible that?
    My code is:
    for(i=0;i<y;i++)
    for(j=0;j<x;j++)
    pin[i][j]=Image1->Canvas->Pixels[i][j];

    x and y is the size of pic...
    The values i get is from start of pics and i want cirlce and get from centre of pic first

  2. #2
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,262
    Look into using sin() and cos() in your for loop if you want to save a circle from the image to Image1. There may be a standard way to do this, but I don't know of it.

    I also don't know if that's what you want ... could you reiterate your problem ... erm ... more clearly?

  3. #3
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    Do you need to spiral out from center or just one circle, or a circle and everything inside?

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    43

    Please help

    Hi
    Sorry. I meant take the first value that will be the centre of pic. Then go right to take the second value, then down and then left. Get all the pixel values by making a circle from the center of pic. Because now let say i have a pic 3x3 i start from the first value on top left then take all the values of the column and continue to the next. I dont want that. I want to do it circle from the center of pic to compare with other values after.

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    43

    Return pic from SQLServer Ado table

    Hi
    Can anyone help; I made an aplication to save pictures in BCB6. So i used expect all the others components a DBGrid to return picture from table. So when i try to return gif, jpeg or tif pictures i have problem because DBImage doesnt support them. Do i have to use TImage component? Any code ideas for that? Any other component that can help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 12-30-2007, 09:08 AM
  2. reading values from a file
    By megastar in forum C Programming
    Replies: 4
    Last Post: 06-25-2007, 02:08 AM
  3. Need help with project
    By chrisa777 in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2006, 05:01 PM
  4. adding ASCII values
    By watshamacalit in forum C Programming
    Replies: 1
    Last Post: 12-26-2002, 06:16 PM
  5. How to read in empty values into array from input file
    By wpr101 in forum C++ Programming
    Replies: 5
    Last Post: 11-28-2002, 09:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21