Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

FloodFill in a transparent .gif in a PictureBox

Posted on 2003-10-29
4
Medium Priority
?
436 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 2000 total points
ID: 9970158
After floodfill:
Pictuer1.Picture = Picture1.Image
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

722 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