Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Fri, 11 Apr 2008 00:48:02 -0700,    group: microsoft.public.win32.programmer.gdi        back       


gdipcreateeffect   
Hi !  I am trying to use gdi+ to create various effects, one of them is 
brightnesscontrast effect. I can easily use the gdi+ functions to do it. But 
I have a problem now: In the gdi+ function GdipCreateEffect, I need to enter: 
const GUID guid, which is a guid of brightnesscontrast effect. I am using 
Gdi+ API strictly, so I can not use C++ terms. In other words, I can not use 
the wrapper functions. Can You fellows tell me how to correctly enter the 
GUID term?  Thank you in advance. 
 1)  gdiplus.dll  1.1  in C:\program files\microsoft office\powerpoint viewer 
 2)  gdiplus.lib  1.1  C:\program files\microsoft sdks\windows\lib ;;or 
include
 3)  The GUID for brightnessContrast is:
     D3A1DBE1_8EC4-4C17-9F4c-EA97AD1C343D    ;in gdipluseffect.h
    or { 0Xd3a1dbe1, 0x8ec4, 0x4c17, {0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c, 
0x34,   0x3d }}
   
 4)  The function is: GdipCreateEffect ( const  GUID guid, CGpEffect 
**effect), a bitmap function.

    Regards loralosangeles
   Lorawang@att.net
date: Fri, 11 Apr 2008 00:48:02 -0700   author:   loralosangeles

Re: gdipcreateeffect   
> 1)  gdiplus.dll  1.1  in C:\program files\microsoft office\powerpoint 
> viewer

You cannot use this file.  Gdiplus 1.1 is only supported on VISTA and VISTA 
Server 2008.

> 2)  gdiplus.lib  1.1  C:\program files\microsoft sdks\windows\lib ;;or

See the answer to 1.  You cannot link the library unless you are targeting 
the above operating systems.

You need the VISTA platform SDK.

> 3)  The GUID for brightnessContrast is:
>     D3A1DBE1_8EC4-4C17-9F4c-EA97AD1C343D    ;in gdipluseffect.h
>    or { 0Xd3a1dbe1, 0x8ec4, 0x4c17, {0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c,
> 0x34,   0x3d }}

> 4)  The function is: GdipCreateEffect ( const  GUID guid, CGpEffect
 > **effect), a bitmap function.

The gdipluseffect.h header file answers this question for you.
CGpEffect* pEffect = NULL;
GdipCreateEffect(BrightenessContrastEffectGuid, &pEffect);

"loralosangeles"  wrote in message 
news:2512DED6-851C-4A2C-BBEE-F3083C669F24@microsoft.com...
> Hi !  I am trying to use gdi+ to create various effects, one of them is
> brightnesscontrast effect. I can easily use the gdi+ functions to do it. 
> But
> I have a problem now: In the gdi+ function GdipCreateEffect, I need to 
> enter:
> const GUID guid, which is a guid of brightnesscontrast effect. I am using
> Gdi+ API strictly, so I can not use C++ terms. In other words, I can not 
> use
> the wrapper functions. Can You fellows tell me how to correctly enter the
> GUID term?  Thank you in advance.
> 1)  gdiplus.dll  1.1  in C:\program files\microsoft office\powerpoint 
> viewer
> 2)  gdiplus.lib  1.1  C:\program files\microsoft sdks\windows\lib ;;or
> include
> 3)  The GUID for brightnessContrast is:
>     D3A1DBE1_8EC4-4C17-9F4c-EA97AD1C343D    ;in gdipluseffect.h
>    or { 0Xd3a1dbe1, 0x8ec4, 0x4c17, {0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c,
> 0x34,   0x3d }}
>
> 4)  The function is: GdipCreateEffect ( const  GUID guid, CGpEffect
> **effect), a bitmap function.
>
>    Regards loralosangeles
>   Lorawang@att.net
>
date: Fri, 11 Apr 2008 09:49:26 -0400   author:   Michael Phillips, Jr. 0.c0m

Re: gdipcreateeffect   
-- 
lorawang


"Michael Phillips, Jr." wrote:

> > 1)  gdiplus.dll  1.1  in C:\program files\microsoft office\powerpoint 
> > viewer
> 
> You cannot use this file.  Gdiplus 1.1 is only supported on VISTA and VISTA 
> Server 2008.
> 
> > 2)  gdiplus.lib  1.1  C:\program files\microsoft sdks\windows\lib ;;or
> 
> See the answer to 1.  You cannot link the library unless you are targeting 
> the above operating systems.
> 
> You need the VISTA platform SDK.
> 
> > 3)  The GUID for brightnessContrast is:
> >     D3A1DBE1_8EC4-4C17-9F4c-EA97AD1C343D    ;in gdipluseffect.h
> >    or { 0Xd3a1dbe1, 0x8ec4, 0x4c17, {0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c,
> > 0x34,   0x3d }}
> 
> > 4)  The function is: GdipCreateEffect ( const  GUID guid, CGpEffect
>  > **effect), a bitmap function.
> 
> The gdipluseffect.h header file answers this question for you.
> CGpEffect* pEffect = NULL;
> GdipCreateEffect(BrightenessContrastEffectGuid, &pEffect);
> 
> "loralosangeles"  wrote in message 
> news:2512DED6-851C-4A2C-BBEE-F3083C669F24@microsoft.com...
> > Hi !  I am trying to use gdi+ to create various effects, one of them is
> > brightnesscontrast effect. I can easily use the gdi+ functions to do it. 
> > But
> > I have a problem now: In the gdi+ function GdipCreateEffect, I need to 
> > enter:
> > const GUID guid, which is a guid of brightnesscontrast effect. I am using
> > Gdi+ API strictly, so I can not use C++ terms. In other words, I can not 
> > use
> > the wrapper functions. Can You fellows tell me how to correctly enter the
> > GUID term?  Thank you in advance.
> > 1)  gdiplus.dll  1.1  in C:\program files\microsoft office\powerpoint 
> > viewer
> > 2)  gdiplus.lib  1.1  C:\program files\microsoft sdks\windows\lib ;;or
> > include
> > 3)  The GUID for brightnessContrast is:
> >     D3A1DBE1_8EC4-4C17-9F4c-EA97AD1C343D    ;in gdipluseffect.h
> >    or { 0Xd3a1dbe1, 0x8ec4, 0x4c17, {0x9f, 0x4c, 0xea, 0x97, 0xad, 0x1c,
> > 0x34,   0x3d }}
> >
> > 4)  The function is: GdipCreateEffect ( const  GUID guid, CGpEffect
> > **effect), a bitmap function.
> >
> >    Regards loralosangeles
> >   Lorawang@att.net
> > 
> 
> 
>
date: Fri, 11 Apr 2008 15:56:01 -0700   author:   lorawang lid

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us