16,007,885 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Chuck Bruce (Top 3 by date)
Chuck Bruce
25-Oct-13 12:05pm
View
1) There was no mistake, Indexed bitmaps CAN be used for TextureBrushes, the problem was in trying to change the palette in the indexed bitmap.
2) I DID SAY that it was a 16 color bitmap, which must be a 4bpp indexed bitmap.
3) What abuse? Is it abuse to post a solution that I myself found? That way anyone else that has this problem will be able to see a solution.
Chuck Bruce
25-Oct-13 10:58am
View
I appreciate your comments, but I have found a solution (posted below).
Chuck Bruce
25-Oct-13 9:36am
View
I understand the concept of TextureBrush. In fact, if I change the bitmap to have colors in it using a bitmap editor, those colors show up in my FillRectangle. The question is really, "Why don't the colors show up properly if I change the bitmap's palette programmatically? The colors are being changed, because I can display the bitmap itself, and it has the new colors. But the TextureBrush doesn't seem to recognize the change.