Avatar billede dronten Nybegynder
22. september 2002 - 14:16 Der er 5 kommentarer og
1 løsning

transperent billed

hvordan laver man baggrunds farven på et billed gennemsigtig
Avatar billede tubber Juniormester
22. september 2002 - 15:34 #1
Det skal du gøre med et billedbehandlings program, f.eks. photoshop og så exportere det som gif, for at have en trasparant baggrund skal det være i billedet....

/Tubber
Avatar billede dronten Nybegynder
22. september 2002 - 16:34 #2
det virker ikke...
Avatar billede tubber Juniormester
22. september 2002 - 16:50 #3
TransparentImage
The TransparentImage function transfers a bitmap, omitting the portions drawn in a specified color.

Syntax
BOOL TransparentImage(HDC hdcDest, LONG DstX, LONG DstY, LONG DstCx, LONG DstCy, HANDLE hSrc, LONG SrcX, LONG SrcY, LONG SrcCx, LONG SrcCy, COLORREF TransparentColor );

At a Glance
Header file: Wingdi.h
Component: mgblt2
Platforms: H/PC
Windows CE versions: 2.0 and later


Parameters
hdcDest
Handle to a device context.
DstX
Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
DstY
Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
DstCx
Specifies the width, in logical units, of the destination rectangle.
DistCy
Specifies the height, in logical units, of the destination rectangle.
hSrc
Specifies a source device context or a source bitmap.
SrcX
Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.
SrcY
Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.
SrcCx
Specifies the width, in logical units, of the source rectangle.
SrcCy
Specifies the height, in logical units, of the source rectangle.
TransparentColor
Indicates the color in the bitmap that will be rendered transparent.
Return Values
If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks
If the hSrc parameter is a HBITMAP, then that bitmap must not be selected into a device context at the time TransparentImage is called.
Avatar billede tubber Juniormester
22. september 2002 - 16:51 #4
Men tror detsvære det er hele billedet der bliver transparant :O/
Avatar billede sjh Nybegynder
22. september 2002 - 21:27 #5
Avatar billede sjh Nybegynder
22. september 2002 - 21:27 #6
svar
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Kurser inden for grundlæggende programmering

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester