VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Mosaic

Dave Hng  (4 Submissions)   Miscellaneous   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

Takes a picturebox, and it's contents, and runs an animated mosaic transition through it

Inputs
pctMosaic, the picturebox object that you're wanting to manipulate MosaicMode, set it to 1 for mosaic, 2 for demosaic, 3 for mosaic, then demosaic

Assumes
Nothing. If you want to edit it, that's another story :)

Side Effects
Can crash some computers. Seems to be a display driver to windows problem! I don't know what causes this!

API Declarations
'Functions for Processing Bitmaps
Declare Function VarPtrArray Lib "msvbvm50.dll" Alias "VarPtr" (Ptr() As Any) As Long
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDst As Any, pSrc As Any, ByVal ByteLen As Long)
Declare Function GetObjectAPI Lib "gdi32" Alias "GetObjectA" (ByVal hObject As Long, ByVal nCount As Long, lpObject As Any) As Long
Type BITMAP
bmType As Long
bmWidth As Long
bmHeight As Long
bmWidthBytes As Long
bmPlanes As Integer
bmBitsPixel As Integer
bmBits As Long
End Type
Type SafeArrayBound
cElements As Long
lLbound As Long
End Type
Type SafeArray2D
cDims As Integer
fFeatures As Integer
cbElements As Long
cLocks As Long
pvData As Long
bounds(0 To 1) As SafeArrayBound
End Type

Rate Mosaic (100(100 Vote))
Mosaic.bas

Mosaic Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters