Avatar billede skwat Praktikant
25. maj 2004 - 09:57 Der er 2 kommentarer og
1 løsning

zoom i picture box

Hejsa Eksperter,

Jeg savner lidt at man kan zoome i en picturebox, er der nogen der kan give et hint til det?

./skwat
Avatar billede martin_moth Mester
25. maj 2004 - 10:41 #1
Prøv at kik nærmere på API-kaldene BitBlt() og StretchBlt() API - tror det er dem du skal have fat i
Avatar billede martin_moth Mester
25. maj 2004 - 10:42 #2
StretchBlt
The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.

Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long

Læs mere på http://www.mentalis.org/apilist/StretchBlt.shtml
Avatar billede skwat Praktikant
27. maj 2004 - 14:24 #3
En fin løsning.
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