| | |
Color manipulation
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2008
Posts: 3
Reputation:
Solved Threads: 0
Are there any methods in C# to adjust the hue, lightness and saturation of textures?
I have a Texture2D object in which I want to gradually change the hue of every pixel in the texture by the same amount over time. Just as if I was in Paint.NET and manually sliding the hue control slider for an image.
Is there a method I can use that gives me control over this?
I'm using the XNA development framework in Visual C# Express Edition
I have a Texture2D object in which I want to gradually change the hue of every pixel in the texture by the same amount over time. Just as if I was in Paint.NET and manually sliding the hue control slider for an image.
Is there a method I can use that gives me control over this?
I'm using the XNA development framework in Visual C# Express Edition
Last edited by Arctic Giraffe; Nov 20th, 2008 at 2:42 pm.
•
•
Join Date: Jun 2008
Posts: 58
Reputation:
Solved Threads: 9
Visual C# Kicks - Free C# code resources and articles.
•
•
Join Date: Nov 2008
Posts: 3
Reputation:
Solved Threads: 0
Perhaps it will :-)
I'll give it a go - thanks for that, looks like I can manipulate HSL values in images to my hearts content with this.
Hopefully I will be able to manipulate the pixels of images around the size of 450x450 (202500 pixels) in real time. If this turns out to be too much for my laptop I'm thinking of using 'stencil' images which lie on top of a changing image of the current hue desired - pre-loading in all my desired hues to display underneath it - since all my images are mostly black with a colorful glyph displayed on them that I want to gradually change colour over time.
I'll give it a go - thanks for that, looks like I can manipulate HSL values in images to my hearts content with this.
Hopefully I will be able to manipulate the pixels of images around the size of 450x450 (202500 pixels) in real time. If this turns out to be too much for my laptop I'm thinking of using 'stencil' images which lie on top of a changing image of the current hue desired - pre-loading in all my desired hues to display underneath it - since all my images are mostly black with a colorful glyph displayed on them that I want to gradually change colour over time.
•
•
Join Date: Sep 2008
Posts: 16
Reputation:
Solved Threads: 0
•
•
•
•
Are there any methods in C# to adjust the hue, lightness and saturation of textures?
I have a Texture2D object in which I want to gradually change the hue of every pixel in the texture by the same amount over time. Just as if I was in Paint.NET and manually sliding the hue control slider for an image.
Is there a method I can use that gives me control over this?
I'm using the XNA development framework in Visual C# Express Edition
Hope this helps
![]() |
Similar Threads
- Great Freewares (Windows Software)
- Question about string manipulation (C)
- C and C++ Timesaving Tips (C++)
- Simple Inventory Program - file manipulation help (C++)
- Help Please - with String Manipulation (C++)
- image manipulation (C#)
- fraud took place in the 2004 election through electronic voting machines (Geeks' Lounge)
Other Threads in the C# Forum
- Previous Thread: Letter combinations
- Next Thread: Making a program to save some peoples information.
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml





