/ Forside / Teknologi / Udvikling / VB/Basic / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
VB/Basic
#NavnPoint
berpox 2425
pete 1435
CADmageren 1251
gibson 1230
Phylock 887
gandalf 836
AntonV 790
strarup 750
Benjamin... 700
10  tom.kise 610
Forklaring på BitBlt
Fra : Lars Thomsen Nielsen


Dato : 07-04-02 18:31

Jeg skal bruge BitBlt, men har svært ved at forstå det. Kender nogen en god,
og gerne dansk hjemmeside, der forklarer om emnet?

mvh

Lars Thomsen Nielsen

********************************************************
This emails is made by 100% recycled electrons
********************************************************



 
 
Haakon (15-04-2002)
Kommentar
Fra : Haakon


Dato : 15-04-02 15:32


> Jeg skal bruge BitBlt, men har svært ved at forstå det. Kender nogen en
god,
> og gerne dansk hjemmeside, der forklarer om emnet?

Ikke noe dansk hjemmeside, men en snippet fra en god engelsk bok;

BitBlt

VB Declaration

Declare Function BitBlt& Lib "gdi32" (ByVal hDestDC 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 dwRop As Long)

Description

Copies a bitmap from one device context to another. The source and
destination DCs must be compatible with one another as described in the
chapter text.

Use with VB

Refer to "Using Bitmaps with Visual Basic," earlier in this chapter.

Parameter & Type/Description

hDestDC
Long-Destination device context

x, y
Long-Point describing the upper-left corner of the destination rectangle
within the destination DC. This is specified in logical coordinates of the
destination DC.

nWidth, nHeight
Long-Width and height of the image being transferred

hSrcDC
Long-Source device context. If the raster operation does not specify a
source, this should be 0.

xSrc, ySrc
Long-Point describing the upper-left corner of the source rectangle within
the source DC. This is specified in logical coordinates of the source DC.

dwRop
Long-Raster operation to use during the transfer. Refer to "Raster
Operations," earlier in this chapter.
Return Value

Long-Nonzero on success, zero on failure. Sets GetLastError.

Platform
Windows 95, Windows NT, Win16. This function will fail under NT if a world
transformation that involves a shear or rotation is in effect in the source
device context.

Comments
If the mapping modes of the destination and source DCs are such that the
size in pixels of the rectangle must be changed during the transfer, this
function will stretch, rotate, shear, fold, spindle, or mutilate the bitmap
as necessary to perform the transfer. Conversions between monochrome and
color bitmaps are discussed in "Color Conversions," earlier in this chapter.




Søg
Reklame
Statistik
Spørgsmål : 177557
Tips : 31968
Nyheder : 719565
Indlæg : 6408885
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste