Click here to Skip to main content
15,916,846 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Getting the font file name Pin
v_krishnan28-Dec-01 19:14
v_krishnan28-Dec-01 19:14 
GeneralMACRO problem.... Pin
Christian Graus27-Dec-01 18:41
protectorChristian Graus27-Dec-01 18:41 
GeneralRe: MACRO problem.... Pin
PJ Arends27-Dec-01 21:29
professionalPJ Arends27-Dec-01 21:29 
GeneralRe: MACRO problem.... Pin
Michael Dunn27-Dec-01 21:44
sitebuilderMichael Dunn27-Dec-01 21:44 
GeneralRe: MACRO problem.... Pin
Christian Graus28-Dec-01 0:30
protectorChristian Graus28-Dec-01 0:30 
GeneralList Box/Control Always having a selected item Pin
me27-Dec-01 17:32
me27-Dec-01 17:32 
GeneralRe: List Box/Control Always having a selected item Pin
James R. Twine28-Dec-01 7:21
James R. Twine28-Dec-01 7:21 
GeneralGraphics related query! Pin
Nish Nishant27-Dec-01 16:42
sitebuilderNish Nishant27-Dec-01 16:42 

I'd like to know what I need to be able to do the
following. I mean can I do all these using plain Win 32 API and a little MFC or
do I need to use some DirectX SDK or OpenGL 2d/3d/whatever?



  • Read a PNG file
  • Apply a circular mask, using the contrast between
    the light subject and the dark background to size and position the mask
  • Apply a rectangular mask similarly, possibly
    rotating the subject to be perpendicular to the canvas
  • Apply a feather to mask
  • Black fill the background leaving the subject alone
  • Write back the PNG to disk

I been asked by my boss whether all this is possible
and having no previous experience in graphics I am stuck. If it involves having
to download some complicated SDKs then I'll probably tell my boss that it is not
feasible. But if it can be done using MFC/API and maybe just a little bit of
Open GL I can make some serious attempts


Any help offered is immensely respected.


Regards


Nish



Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
GeneralRe: Graphics related query! Pin
Christian Graus27-Dec-01 16:55
protectorChristian Graus27-Dec-01 16:55 
GeneralRe: Graphics related query! Pin
Nish Nishant27-Dec-01 18:13
sitebuilderNish Nishant27-Dec-01 18:13 
GeneralRe: Graphics related query! Pin
Christian Graus27-Dec-01 18:38
protectorChristian Graus27-Dec-01 18:38 
GeneralRe: Graphics related query! Pin
Nish Nishant27-Dec-01 18:52
sitebuilderNish Nishant27-Dec-01 18:52 
GeneralRe: Graphics related query! Pin
Christian Graus27-Dec-01 19:22
protectorChristian Graus27-Dec-01 19:22 
GeneralRe: Graphics related query! Pin
Nish Nishant27-Dec-01 20:48
sitebuilderNish Nishant27-Dec-01 20:48 
Generalpseudocode(sp?) help Pin
Steve L.27-Dec-01 16:12
Steve L.27-Dec-01 16:12 
GeneralRe: pseudocode(sp?) help Pin
Nish Nishant27-Dec-01 16:45
sitebuilderNish Nishant27-Dec-01 16:45 
GeneralXML Program Pin
vinuk27-Dec-01 15:40
vinuk27-Dec-01 15:40 
GeneralRe: XML Program Pin
Tim Smith27-Dec-01 15:56
Tim Smith27-Dec-01 15:56 
GeneralRe: XML Program Pin
27-Dec-01 16:18
suss27-Dec-01 16:18 
GeneralRe: XML Program Pin
Michael Dunn27-Dec-01 16:44
sitebuilderMichael Dunn27-Dec-01 16:44 
GeneralRe: XML Program Pin
27-Dec-01 17:04
suss27-Dec-01 17:04 
GeneralRe: XML Program Pin
Nish Nishant27-Dec-01 21:02
sitebuilderNish Nishant27-Dec-01 21:02 
GeneralRe: XML Program Pin
Tim Smith28-Dec-01 2:17
Tim Smith28-Dec-01 2:17 
GeneralRe: XML Program Pin
Nish Nishant28-Dec-01 18:52
sitebuilderNish Nishant28-Dec-01 18:52 
GeneralRe: XML Program Pin
Tim Smith28-Dec-01 2:24
Tim Smith28-Dec-01 2:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.