Solved

FloodFill in a transparent .gif in a PictureBox

Posted on 2003-10-29
4
414 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

Independent Software Vendors: 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

Title # Comments Views Activity
Access query that references subform 5 48
Add a task in Outlook from access 11 42
MS Access 03, TransferText, decimal places 8 85
Excel Automation VBA 19 102
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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

740 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