How can i set color palette for an image?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: How can i set color palette for an image?

  1. #1
    Join Date
    Jul 2011
    Posts
    8

    Red face How can i set color palette for an image?

    Hello All,

    I am using this code to set the palette for an image but exception is throwing as index is out of bounds can any one help me?

    ColorPalette palette = bmp.Palette;
    palette.Entries[0] = Color.Black;
    bmp.Palette = palette;

    Thanks in advance

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,090

    Re: How can i set color palette for an image?


Tags for this Thread

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center