 |
|
 |
hi, CContourBitmap is really cool, thanks for your sharing. I want to know how to add text just like your copyright line, the demo I downloaded doesn't include this. I would appreciate if you could tell me or send your demo modified to my email:aren372@hotmail.com.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
 | Thanks  CaveFox | 12:18 29 Oct '06 |
|
|
 |
|
|
 |
|
 |
I am working on one assignment which should create a BItmap Corrosponding to one number(1,2,3,4,5,6....) and the data has to be Dumped in to the Video Grabbed Frame(RGB24 Bit data) so that if we see the Frame we should be able to see the grabbed frame too. Can any body help me Regards
Anil Kumar
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I have propertysheet and then property pages inside it. When I tired to use BitmapContour class it shows the complete dialog box.
AGuliani
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
I don't see any reason why CBitmapContour shouldn't work with property sheets. All you have to do is to subclass CPropertySheet and to set its window region in the OnCreate handler.
Have you noticed the "Known Bugs" section of my article? The problems that you have might be caused by the color depth of your desktop. To be independent from the color depth use HRGN CContourBitmap::CreateRegion(CPoint pntTransparentColor) and specify a point within the bitmap to pick the transparent color rather than to specify its color value.
HTH Wolfgang
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
It is working with Property sheet. Do you know any way to display 24 bit Bitmap that works with this project? I am able to display 256 color bitmap but not 24 bit bitmap.
Aguliani
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Hi!
If you put any control on the form it gets flashing all the time, how to avoid it?
I am looking for some code to make an OSD, showing just a transparent background static control. Is it possible with this code?
Thanx for sharing!!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
JL002 wrote: If you put any control on the form it gets flashing all the time, how to avoid it?
It is flashing because the WS_CLIPCHILDREN style is not set for the dialog. When you go to the resource editor and set the checkmark for "Clip children" the flashing is history 
JL002 wrote: I am looking for some code to make an OSD, showing just a transparent background static control. Is it possible with this code?
Yes, it is.
JL002 wrote: Thanx for sharing!!
You are welcome.
|
| Sign In·View Thread·PermaLink | 3.00/5 |
|
|
|
 |
|
 |
This article seems to carry a copyright older than Windows itself 
The Pink Panther TM & (C) 1964 by Metro-Goldwyn-Mayer Studios, Inc.
Best regards, Paul.
Jesus Christ is LOVE! Please tell somebody.
|
| Sign In·View Thread·PermaLink | 1.20/5 |
|
|
|
 |
|
 |
Wolfgang,
I like this region implementation, very neat and clean!
I was wondering if perhaps you could give me some pointers for an effect I'm trying to achieve...
In an MDI MFC application I have a screen on which the user can place any number of bitmaps, loaded from files. The bitmaps can be moved and resized as required. I have implemented transparency, and flip and mirror functions.
The bit I struggling with is as follows - when the user points at the bitmap with the mouse cursor, I'd like to highlight it using FrameRgn to draw a frame around the non-transparent part of the bitmap (also I'd like to only highllight when pointing at non-transparent regions).
I have a feeling ContourBitmap might make this quite easy, but can't figure it out (my FrameRgn always seems to draw a rectangle around the source bitmap).
Any pointers?
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Well, it's hard to tell what's going wrong in your application without seeing the code. But perhaps it might help, if you clone the region handle returned by CBitmapContour to use the duplicate when calling FrameRgn.
When you pass a region handle to SetWindowRgn it seems that the handle becomes invalid. Obviously you have to clone that handle to use it in different places.
You can use CombineRgn to clone a region handle:HRGN hrgnTarget = CreateRectRegn(0,0,0,0); CombineRgn(hrgnTarget, hrgnSource, NULL, RGN_COPY); HTH Wolfgang
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
Thanks for you response. I managed to get the frame to appear, but I think it was more by accident than anything else! I use a mask (Contour) bitmap to create the transparency effect, and while preparing the mask I store the region. I then use this region to draw the frame, which seems to work (but, again, I think by accident).
I tried to use PtInRegion to check when my mouse pointer is hovering over the non-transparent parts of the bitmap, but it doesn't work.
I also think I need to do some extra processing to 'undraw' the frame (or redraw the bitmap without the frame).
I'll have to keep trying...
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |