Solved

FloodFill in a transparent .gif in a PictureBox

Posted on 2003-10-29
4
404 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
4 Comments
 
LVL 27

Accepted Solution

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

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 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