C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » WPF »

How to pick the color from the logo image?


Posted Date: 06 Oct 2009      Posted By: Kumar, K, M      Member Level: Silver     Points: 1   Responses: 1



Hi,

I have an image logo.Now i need to draw a line below that with some color which is in the logo.how to choose/pick that color.though i used MSPaint to pick the RED,BLUE,GREEN combinations ,i don't know how to use it in this WPF.please help me.

Thanks,
kumar





Responses

Author: Harsh    06 Oct 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

I use this code to pick system colors. Might this helps u-

<ObjectDataProvider MethodName="GetType"
ObjectType="{x:Type sys:Type}" x:Key="colorsTypeOdp">
<ObjectDataProvider.MethodParameters>
<sys:String>System.Windows.Media.Colors, PresentationCore,
Version=3.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35</sys:String>
</ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
<ObjectDataProvider ObjectInstance="{StaticResource colorsTypeOdp}"
MethodName="GetProperties" x:Key="colorPropertiesOdp">
</ObjectDataProvider>



Post Reply
You must Sign In to post a response.
Next : Dynamically call the images over xml
Previous : How to host a wpf browser application?
Return to Discussion Forum
Post New Message
Category: WPF

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use