Solved

FloodFill in a transparent .gif in a PictureBox

Posted on 2003-10-29
4
419 Views
Last Modified: 2008-02-01
Hey all,

I created a template image, a .gif with transparency (for rounded corners that blend with the background), and I want to have this in a container such as a PictureBox. This itself is not a problem, but the issue is that I want to be able to fill in a large portion of the card (currently all gray) to whatever color I want.

Using the FloodFill API, I am able to fill in the whole PictureBox with the color of my choice, but if AutoRedraw is on (or if I refresh the PictureBox) then it reverts to the original image. Is there any way I can fill in just part of the image using FloodFill, or is there some other function I can use?

Otherwise I'll have to somehow work it out using Shape controls, but that would be a big hassle.

Thanks!
-PtG
0
Comment
Question by:PaultheGreat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 28

Accepted Solution

by:
Ark earned 500 total points
ID: 9970158
After floodfill:
Pictuer1.Picture = Picture1.Image
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question