M Monsterman22 Member Jul 17, 2010 #1 ImageLib Graphics leave much to be desired Attachments Rotating_;-)_Circle.zip 4.5 KB · Views: 367
C ceaser Active Member Licensed User Jul 17, 2010 #2 Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required. Michael
Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required. Michael
Cableguy Expert Licensed User Longtime User Jul 17, 2010 #3 ceaser said: Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required. Michael Click to expand... Because He Can't!! He's not registered!!!
ceaser said: Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required. Michael Click to expand... Because He Can't!! He's not registered!!!
C ceaser Active Member Licensed User Jul 17, 2010 #4 OOPS!!:sign0148::BangHead: Monsterman, buy the program then all your problems are over!:sign0060:
M Monsterman22 Member Jul 17, 2010 #5 buy the program then all your problems are over! Click to expand... Ofcause I will buy the license....not just yet. Any good .exe examples of ImageLibEx??(Other than rotate.exe)
buy the program then all your problems are over! Click to expand... Ofcause I will buy the license....not just yet. Any good .exe examples of ImageLibEx??(Other than rotate.exe)
M Monsterman22 Member Jul 23, 2010 #6 There is one more feature I'm missing in the ImageLib: Bitmap.SetPixel(R,G,B | Color constant) instead there is only ...SetPixel(Color as color) May I know if such feature available in the ImageLibEx?
There is one more feature I'm missing in the ImageLib: Bitmap.SetPixel(R,G,B | Color constant) instead there is only ...SetPixel(Color as color) May I know if such feature available in the ImageLibEx?
klaus Expert Licensed User Longtime User Jul 23, 2010 #7 It's the same in ImageLibEx. But you can use in both libraries. Bitmap.SetPixel(x,y,RGB(R,G,B)) Best regards.
It's the same in ImageLibEx. But you can use in both libraries. Bitmap.SetPixel(x,y,RGB(R,G,B)) Best regards.
M Monsterman22 Member Jul 23, 2010 #8 Hello Klaus. Bitmap.SetPixel(x,y,RGB(R,G,B)) Click to expand... I have tried.....Can't figure the proper syntax.Can you help me out please? Bitmap.GetPixel returns such values as -1 -330010 -1457575 etc .They don't look like RGB
Hello Klaus. Bitmap.SetPixel(x,y,RGB(R,G,B)) Click to expand... I have tried.....Can't figure the proper syntax.Can you help me out please? Bitmap.GetPixel returns such values as -1 -330010 -1457575 etc .They don't look like RGB
specci48 Well-Known Member Licensed User Longtime User Jul 23, 2010 #9 Monsterman22 said: Bitmap.GetPixel returns such values as -1 -330010 -1457575 etc .They don't look like RGB Click to expand... As mentioned in the help file, Bitmap.GetPixel1 returns a color, not RGB values: "Syntax: GetPixel1 (x As Int32, y As Int32) As Color" You can convert a color to RGB with: B4X: Dim Type (R,G,B) clr clr() = GetRGB(Bitmap.GetPixel1(x,y)) Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B) specci48
Monsterman22 said: Bitmap.GetPixel returns such values as -1 -330010 -1457575 etc .They don't look like RGB Click to expand... As mentioned in the help file, Bitmap.GetPixel1 returns a color, not RGB values: "Syntax: GetPixel1 (x As Int32, y As Int32) As Color" You can convert a color to RGB with: B4X: Dim Type (R,G,B) clr clr() = GetRGB(Bitmap.GetPixel1(x,y)) Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B) specci48
klaus Expert Licensed User Longtime User Jul 23, 2010 #10 What exactly do you want to do ? Do you really need the R,G,B values and what for ? You can use a variable for the color, like col col = Bimap.GetPixel(x1,y1) you can then use Bitmap.SetPixel(x2,y2,col) Best regards.
What exactly do you want to do ? Do you really need the R,G,B values and what for ? You can use a variable for the color, like col col = Bimap.GetPixel(x1,y1) you can then use Bitmap.SetPixel(x2,y2,col) Best regards.
M Monsterman22 Member Jul 23, 2010 #11 Do you really need the R,G,B values and what for ? You can use a variable for the color, like col Click to expand... I have more purpose. I need RGB to edit and create sprites and bitmaps. I want to get a good knowledge of computer graphics You can convert a color to RGB with: Code: Dim Type (R,G,B) clr clr() = GetRGB(Bitmap.GetPixel1(x,y)) Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B) Click to expand... Thanks Specci I should have thought of it myself. Probably I've spent too much time at my comp today
Do you really need the R,G,B values and what for ? You can use a variable for the color, like col Click to expand... I have more purpose. I need RGB to edit and create sprites and bitmaps. I want to get a good knowledge of computer graphics You can convert a color to RGB with: Code: Dim Type (R,G,B) clr clr() = GetRGB(Bitmap.GetPixel1(x,y)) Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B) Click to expand... Thanks Specci I should have thought of it myself. Probably I've spent too much time at my comp today
specci48 Well-Known Member Licensed User Longtime User Jul 23, 2010 #12 Monsterman22 said: Probably I've spent too much time at my comp today Click to expand...
appie21 Active Member Licensed User Longtime User Dec 5, 2012 #13 Hello i have this B4X: ToastMessageShow(bmpBackground.GetPixel(20,20),True) Dim Type (R,G,B) clr clr() = GetRGB(bmpBackground.GetPixel1(20,20)) Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B) but GetRGB is red what do i wrong? my i dea is to get the RGB of a pixel of a image
Hello i have this B4X: ToastMessageShow(bmpBackground.GetPixel(20,20),True) Dim Type (R,G,B) clr clr() = GetRGB(bmpBackground.GetPixel1(20,20)) Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B) but GetRGB is red what do i wrong? my i dea is to get the RGB of a pixel of a image
klaus Expert Licensed User Longtime User Dec 5, 2012 #14 This is a Basic4PPC library and not a Basic4Android library ! getPixel is in the BitmapExtended library. I haven't found a direct GetRGB function in Basic4Android. But there is a code here. Best regards.
This is a Basic4PPC library and not a Basic4Android library ! getPixel is in the BitmapExtended library. I haven't found a direct GetRGB function in Basic4Android. But there is a code here. Best regards.