Solved

FloodFill in a transparent .gif in a PictureBox

Posted on 2003-10-29
4
398 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
Comment Utility
After floodfill:
Pictuer1.Picture = Picture1.Image
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now