User Profile

Collapse

Profile Sidebar

Collapse
arashkk
arashkk
Last Activity: Dec 29 '09, 10:15 AM
Joined: Jun 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thank you for your answer. I understand the reason of losing data. I am looking for a fast way for changing colors but not pixel by pixel. As Format24bppRgb format doesn't provide palette information, I thought it is good to convert it to another format which does have palette information. I need to have access to palettes but without losing data.
    See more | Go to post

    Leave a comment:


  • I am PhD student. My main work is with mathematic, not manipulating bitmaps.
    See more | Go to post

    Leave a comment:


  • It is not a school work. take it easy:) my research topic is much more complicated to be discussed here. This program is just a bit of work that I can ask everyone I want and what I have to do it something new that could not be found on the Internet:) So please help me to do this faster. I would appreciate it.
    See more | Go to post

    Leave a comment:


  • I'm sorry that I could not explain. Yes, I mean smooth transition from one to color to another. For example to increase Red in an RGB image to make it more red. I did it by changing every pixel, but my teacher is not satisfied with it and says I have to do it by changing palettes as it takes shorter time.
    See more | Go to post

    Leave a comment:


  • Thank you very much! Actually I am going to write a program for color grading (or color gradient if I am not mistaken). I thought by converting the image to Format8bppIndex ed, I would be able to change the colors by setting palette value instead of changing colors pixel by pixel. That is why I am looking for a way to do this conversion. I need a fast method for changing the color, contrast and resolution of images. Do you think the way I chose is...
    See more | Go to post

    Leave a comment:


  • Hello tlhintoq,
    Thank you very much for your asnwer. I used the samlpe to convert from Format24bppRgb to Format8bppIndex ed but yet the resulting image loses some color data. I feel the probmel is in MatchColors function, but I can not find it... I would be thankful if you could help me.
    See more | Go to post

    Leave a comment:


  • Converting from Format24bppRgb to Format8bppIndexed distorts the image

    I convert a bitmap from Format24bppRgb to Format8bppIndex ed this way:

    Code:
    Bitmap bmp = new Bitmap("c:\\flower.bmp");
    BitmapData bmData = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadWrite, PixelFormat.Format24bppRgb);
    Bitmap temp = new Bitmap(bmData.Width, bmData.Height, bmData.Stride, PixelFormat.Format8bppIndexed, bmData.Scan0);
    bmp.UnlockBits(bmData);
    pictureBox1.Image =
    ...
    See more | Go to post
    Last edited by tlhintoq; Dec 26 '09, 03:19 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]

  • arashkk
    started a topic New C# class in ASP.net - I can't use it!

    New C# class in ASP.net - I can't use it!

    I have defined a new class in an ASP.net project. When I compile the website I recieve this error "The type or namespace "Class1" could not be found (are you missing a directive or assembly refrence?)"
    I even moved the class file to the website folder and then to the Add_data folder and each time removed and added the class in the project. But yet I receive this error message. Would you please help me? Once I put the class...
    See more | Go to post
No activity results to display
Show More
Working...