VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Explains How to process images thru Vb

by manikantan (12 Submissions)
Category: Graphics
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 25th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Explains How to process images thru Vb

Rate Explains How to process images thru Vb



Manikantan
3rd agenda
Web Development
India

Digital Image Processing Using Visual Basic.
 
Visual Basic Extends Several Possibilities and tools for Digital Image
processing.The Only format Supported by Visual Basic for Displaying in
its Control is the .BMP format.All other Formats like 
 
1)Jpg 
2)Gif
3)Tif 
 

Get Converted into .bmp format when Embeded in Visual basic.Once a Picture 
is Assigned to a picture box in design time it gets loaded along with the form
in other words picture property of a picture box does not store path of the images
it stores the image along with the form in a file secondry named .frx.And any image
in any format get converted to .BMP with 24 bit representation of the image.
 
Another Feature of Visual Basic is Drawing Persistant Graphics on the Screen.
Graphics which are Persistant on the screen even after moving other window on the Drawn area 
are called as the persistant graphics.This can be Set using the autoredraw property of the picture box.
 
The color Modes.
Visual Basic Supports the RGB color Mode.
rgb(0,0,0) Defines Black and rgb(255,255,255) Defines White
Red parameter can take a Value range of 0 to 255 and so do the greeen and Blue
So with permutations we can achieve a Max of 255 x 255 x 255 colors a max of 16 Million Colors
So VB with its RGB color Mode Supports a max of 16 million Colors and to be exact 16 million shades.
The other color modes that are Available are 
 
CMYK
LSB
Thought not Supported By Visual Basic.
 
 
 
The Other Important Supports extended by Visual Basic to Digital Image processing are
to read and Write Pixels to a Picture.The Methods That are Used for Doing this are the
1)Point 
2)Pset 
 
Both the methods are supported by a Picture Box.
 
Pcitureboxname.pset(x,y),color
will set the pixel at the point specified at x,y with the color mentioned in the long variable 
"color"
 
pictureboxname.point(x,y)
 
will pick a long integer which consist of the color information which can be
split to the respective RGB value.The Point method uses the X,Y co-ordinate system rather than the general
left,top Positioning or ROW,COL value.The top left corner of the picture box can be assumed as a graph with
0,0 and without negative Axis.
 
With All these Facilities Visual Basic can be Easily Manupilated to make it a Digital Image Processing Tool.
 
Article by 
Manikantan
email:[email protected]

Download this snippet    Add to My Saved Code

Explains How to process images thru Vb Comments

No comments have been posted about Explains How to process images thru Vb. Why not be the first to post a comment about Explains How to process images thru Vb.

Post your comment

Subject:
Message:
0/1000 characters