VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TV Lines Image Filter

Jared Collums  (3 Submissions)   Graphics   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

This code puts lines over a picture box's picture. You can set it's opacity, and it's direction.

Inputs
PictBox, the picture box to manipulate. optional Opacity. This controls how transparent/solid the lines are. The value works best with a value 1-100. And direction...wich sets the lines horizontal(1) or vertical(2).

Assumes
For this to work, the picturebox must have AutoRedraw set, and it's scalemode must be pixels.

Side Effects
if it's a very big image, it might be a tiny bit slow.

API Declarations
Public Declare Function SetPixel Lib "GDI32" (ByVal HDC As Long, ByVal X As Long, ByVal Y As Long, ByVal crColor As Long) As Long
Public Declare Function GetPixel Lib "GDI32" (ByVal HDC As Long, ByVal X As Long, ByVal Y As Long) As Long

Rate TV Lines Image Filter (3(3 Vote))
TV Lines Image Filter.bas

TV Lines Image Filter Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters