|
|
|
|
|
|
How to run an AVI inside a PictureBox control
|
Total Hit (3510) |
API Declarations
«Code LangId=1» Const WS_CHILD = &H40000000
Private Declare Function mciSendString Lib "winmm.dll" Alias _
"mciSendStringA" (ByVal lpstrCommand As String, _
ByVal lpstrReturnString As String, ByVal uReturnLength As Long, _
ByVal hwndCallback As Long) As Lon
....Read More |
Rating
|
|
|
Tunnel graphical effect
|
Total Hit (1736) |
Usage
«Code LangId=1»
'Create a Form and place this code inside
'Sorry but the comments are in german :((
Option Explicit
Dim offx% ' x-offset zur mitte
Dim offy% ' y-offset zur mitte
Dim anz% ' anzahl sterne
Dim bahnx%(100, 180)
....Read More |
Rating
|
|
|
Drawing With Textures
|
Total Hit (1701) |
This article provides an extension to the technique demonstrated in Creating Single Pixel Dotted Lines to show how you can easily create a brush for drawing shapes from any bitmap, picture or device context.
|
Rating
|
|
|
Fading Out Selected Areas Using UpdatedLayeredWindow
|
Total Hit (2112) |
In Windows 2000 and XP, when you click a Start Menu item, such as "Run" an after image of the item you've clicked remains on screen and fades out whilst the Run box starts up. This article provides a reusable form-class you can use to provide this effect in your application.
....Read More |
Rating
|
|
|
Creating Drop-Shadows
|
Total Hit (2086) |
Demonstrates how to create drop-shadows for windows and controls using the same technique used by Office XP/VS.NET CommandBars.
|
Rating
|
|
|
Flicker Free API Drawing
|
Total Hit (2845) |
VB offers a way to reduce flicker when drawing a control through its AutoRedraw property. When AutoRedraw is set, VB creates an Off-Screen buffer to draw into, and only transfers this to the drawing surface when the Refresh method is called. Whilst this works well (ish), it doesn't help if you need
....Read More |
Rating
|
|
|
|
|
Creating Single Pixel Dotted Lines
|
Total Hit (1578) |
One of the drawing features which makes many of the Windows controls draw attractively is the use of single pixel on-off dotted lines. For example, the TreeView control uses these to draw lines, and they are often used in bounding box selections and drag and drop operations.
Unfortunately VB does
....Read More |
Rating
|
|
|
Animated Cursors in VB
|
Total Hit (1788) |
Nice feature in Office - you can set it to show customised animated cursors. For example, when Office is opening a document the cursor switches to an animation of a yellow handbag throwing up a small piece of paper (I think that's what it is, anyway).
It would be nice to do it this in VB too, yes
....Read More |
Rating
|
|
|
Text At Any Angle
|
Total Hit (2376) |
VB doesn't provide you with any method to change the angle text is written out at on a Form or PictureBox. This seems to be a curious oversight of the OLE StdFont object, because it is in fact very simple to create a font with angles other than horizontal. This article shows you how to do it. The so
....Read More |
Rating
|
|
|
Reading and Saving .ICO files and resources in VB
|
Total Hit (2231) |
VB allows you to load an save .ICO files through the LoadPicture and SavePicture methods, which are implemented in the StdPicture object. Unfortunately, this object was really written for 16 bit Windows and doesn't understand Win32 icons at all. A .ICO resource can contain many different images, at
....Read More |
Rating
|
|
|
Drawing Borders and Edges using the API DrawEdge Function
|
Total Hit (2161) |
The DrawEdge function is a useful function provided by the Win32 API. It can draw a variety of the edge styles used to draw buttons, frames and borders around controls and forms. The source code for this article shows you how to:
Use the DrawEdge to achieve a variety of edge styles.
Evaluate the
....Read More |
Rating
|
|
|
|
Image Processing Using DIB Sections
|
Total Hit (819) |
This sample demonstrates a new 24 bit image processor using the DIB Section GDI object, allowing you to perform a whole raft of standard Image Processing functions, including blurring, sharpening, colourising, resampling and image arithmetic.
|
Rating
|
|
|
Colour Depth Control
|
Total Hit (624) |
In VB, you cannot change the colour depth of a bitmap. This article presents classes allowing you to reduce or increase the colour depth using a number of different methods and also to save the resulting image to disk as a bitmap with the specified colour depth.
....Read More |
Rating
|
|
|
Texturising Images
|
Total Hit (1924) |
This sample provides a simple image processing application which applies a texture to an image by modifying the lightness of the image according to the lightness of a texture image. The texture image is tiled across the surface of the processed image.
....Read More |
Rating
|
|
|
Counting Colours in an Image
|
Total Hit (1317) |
Counting the number of distinct colours in an image doesn't sound like a particularly hard thing to do until you try it on a large 24-bit image. This article demonstrates one technique for counting the colours quickly.
|
Rating
|
|
|
Colourisation
|
Total Hit (1557) |
Image colourisation is a widely-used technique in image processing which can be used to create sepia-toned effects as well as adjusting images so they can be used as watermarks and in the creation of layered background images. This article demonstrates how to use the Hue, Luminance and Saturation mo
....Read More |
Rating
|
|
|
Gamma Correction
|
Total Hit (1670) |
A Gamma Correction filter is primarily used for colour matching purposes on CRT based displays, but it can also be used for creative image processing. This article shows how the gamma filter is calculated and provides an implementation.
|
Rating
|
|
|
Compositing Operations
|
Total Hit (2071) |
There are various ways of combining two images together, particularly when either or both of the two images contain alpha channels. As the real-time video-effects industry has developed, twelve standard compositing techniques, know as the Porter-Duff Compositing Operations, have emerged. In addition
....Read More |
Rating
|
|
|
Brightness and Contrast
|
Total Hit (1670) |
This article demonstrates how to apply two of the simplest image processsing filters, brightness and contrast, to an image.
|
Rating
|
|
|
Optimised Colour Reduction Using Octrees
|
Total Hit (776) |
Describes the working of the Octree colour quantisation algorithm be used to create optimised colour palettes of arbitrary depth (although typically used for 256 colours) from any image and compares the results with other colour reduction methods.
|
Rating
|
|
|
|
Rank Filters
|
Total Hit (736) |
This is a supporting note describing the Rank filter provided in the vbAccelerator Image Processor. Rank filters can either be linear, yielding a softening effect, or non-linear, giving an impressionistic effects to a images.
|
Rating
|
|