class CBitmapDC : public CDC
-
I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class. I want it to: ~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically) Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it. Thank you in advance
-
I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class. I want it to: ~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically) Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it. Thank you in advance
The easiest thing to do would be to modify your CDIB class to use a DIBSection instead of direct memory - the only thing to change here would be the way you allocate your memory - but you probably use Global Alloc any way so that too shouldnt matter. I have a DIB class which i attach to a DibSection everytime i want to use one of the GDI functions to draw into the DIB . If you have a problem, let me know at rrajivram@hotmail.com and Ill try to send you a stripped down version which will show you the way. Cheers, Rajiv
-
I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class. I want it to: ~ be derived from CDC so that I can draw & blit to it, etc ~ be able to load from and save to 8,16,24 and 32bit DIBs ~ flip (mirror vertically) Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it. Thank you in advance
Maybe http://www.codeproject.com/gdi/WebImageDC.asp will provide a starting point... ================== The original message was: I desperately want a class that does a couple of specific things. It's a personal thang - I'm writing an app that will be freeware, but it's such a challenge that I'm almost willing to pay for the help! I'm tired of hunting for info, and hackiong for results. I can't get my head round the bitmap structires enough to write my own functions - hence a public request for a class.
I want it to:
~ be derived from CDC so that I can draw & blit to it, etc
~ be able to load from and save to 8,16,24 and 32bit DIBs
~ flip (mirror vertically)Any takers?? If so, I have an existing CDIB class that does nearly all of the above and will send it to anyone who wants it.
Thank you in advance