User Profile
Collapse
Profile Sidebar
Collapse
Omelskitot
Last Activity: Sep 30 '12, 05:43 AM
Joined: Aug 21 '12
Location:
-
How to convert bmp to dxf file??
Is it possible to convert bmp to dxf file? i have a CNC machine that reads dxf file i want to know how can i possibly convert a bmp to dxf file using VB 6.. thanks in advance -
8 bit grayscale?
Is this a code for generating 8 bit grayscale??...Code:1.Private Sub CMDGRAY_Click() 2.Dim X As Integer, Y As Integer 3.Dim R As Integer, G As Integer, B As Integer, A As Integer 4.For X = 1 To ubx 5.For Y = 1 To uby 6.pixels(X, Y) = Picture1.Point(X, Y) 7.Next Y 8.Next X 9. 10.For X = 1 To ubx 11.For Y = 1 To uby 12.R = pixels(X, Y) And &HFF 13.G = ((pixels(X, Y) And
-
i add text1.text for the i and text2.text for the j...Code:With Picture2 pHdc = .hdc .ScaleMode = 3 For i = 0 To .ScaleWidth For j = 0 To .ScaleHeight tempColor = GetPixel(pHdc, i, j) If tempColor = vbWhite Then nWhite = nWhite + 1 Text1.Text = -
Here's the example the output show the total number of black and white, Now my question is how can i see each pixel of the color black. in the picture x axis i assume the number is the last pixel for white and the y axis for the last pixel for black...Leave a comment:
-
I saw this code made by PsychoCoder...Code:Private Declare Function GetPixel Lib "gdi32" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long Private Sub Form_Load() pixBox.Picture = LoadPicture("YourPicturePath") Dim i As Long, j As Long, nBlack As Long, nWhite As Long, pHdc As Long, tempColor As Long Show With pixBoxLeave a comment:
-
-
Thanks alot. now ill have to study how to trace the color black in the pictures and store it in the array. im making a sketch/illustrating machine. only black and white pictures only thats why im using grayscale. after that trace the black color in the pixel then locate where the pixel is store it in the array [x,y] i have corresponding function for x and y. cause my machine also uses x and y axisLeave a comment:
-
-
Grayscale Saving problem
I have a problem in saving grayscale picture from picture box i have this code for grayscale...Code:Private Sub CMDGRAY_Click() Dim Color As Long Dim NewColor As Long Picture2.Picture = LoadPicture(CommonDialog1.FileName) Picture2.ScaleMode = vbPixels X = Picture2.ScaleWidth Y = Picture2.ScaleHeight For i = 0 To Y - 1 For j = 0 To X - -
Picturebox question
id like to know if its possible. i need to find the location of black and white color in the picturebox. per pixel and store it to array. for example; there are color black from x1 to y5. i want to store it to array example; pixel[x1,y1],[x1,y2],[x1,y3],[x1,y4],[x1,y5] how can i do it automatically? Tnx in advance...
No activity results to display
Show More
Leave a comment: