|
How to load BMP file into memory and perform rotation on it ?
|
Total Hit (9048) |
Bitmap rotation is a graphic effect that Visual Basic does not natively offer. This article shows how to rotate a given image in 90-degree increments. It allows you to rotate any image 0, 90, 180 or 270 degrees. With a little work, the code can be modified to rotate to any angle, but that is beyond
....Read More |
Rating
|
|
|
|
Load, Modify and Save 1, 4, 8, 15 (Bit-fields), 16, 24 and 32-bit Bitmaps using GDI Apis.
|
Total Hit (5200) |
This sample code will show you how to load 1, 4, 8, 15 (Bit-fields), 16, 24 and 32-bit images from disk and modify them into memory and save back to disk.
Just copy/paste the following code into form1 code window. Before you run this example make sure that you modify the ImgPath and SavePath.
....Read More |
Rating
|
|
|
Working with Bitmap and DIB
|
Total Hit (16210) |
In this article we will learn basic concept to work with Bitmap and DIB. We will wrap all functionality in a handy class which can give you ability to work with 2D Pixel array of Bitmap loaded into the memory.
Before we implement DIB and BMP class lets understand BMP file format which is DIB (Dev
....Read More |
Rating
|
|
|
|
How to use BeginPath and EndPath to fill open shapes.
|
Total Hit (4513) |
Have you ever tried to fill shapes which are drawn by Polyline or PolyBezier which doesn't draw closed figures. The problem is its not closed figure so you cannot fill using regular fill method which works very well with closed figures. The solution to this problem is BeginPath and EndPath apis
Y
....Read More |
Rating
|
|
|
How to create pattern brush from bitmap or picture object ?
|
Total Hit (6661) |
In this article we will learn how to use CreatePatternBrush along with CreateBitmap API. CreateBitmap can be used to create a memory bitmap of specified width, height and Bits/Pixel. CreatePatternBrush can create a pattern brush based of Bitmap. You can also use VB Picture object as a bitmap handle.
....Read More |
Rating
|
|
|
|
Getting StdPicture's Width and Height properties in Pixels
|
Total Hit (5186) |
In general, Visual Basic doesn't provide a way to determine the size of a bitmap loaded into a PictureBox control. But you can derive this information if you set the control's AutoSize property to True and then read the control's ScaleWidth and ScaleHeight properties. If you don't want to resize a v
....Read More |
Rating
|
|
|