|
-
December 2nd, 2009, 11:53 PM
#5
Re: How to create a pattern plus color brush using GDI Plus brush object
 Originally Posted by maheshmahindrakar
P.S --> I cant use the standard patterns of MFC, i have created some bitmaps in resource with some designs and i want to use that bitmap as a brush pattern.
So if user selects pattern 1 and color as a red then that particular object should be filled with pattern 1 in red color.
Once again: is your pattern colored? Using one solid color?
I already suggested two ways:
1. Use GDI with monochrome pattern and change text/background color.
2. Run through each pixel of your pattern and modify its color.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|