Discussion in 'Basic4ppc Wishlist' started by Monsterman22, Jul 17, 2010.

  1. Monsterman22

    Monsterman22 Member

    ImageLib Graphics leave much to be desired

    Attached Files:

  2. ceaser

    ceaser Active Member Licensed User

    Why don't you use Agraham's graphics library? I have used it for my CAD program and it has all that I required.

  3. Cableguy

    Cableguy Expert Licensed User

    Because He Can't!! He's not registered!!!
  4. ceaser

    ceaser Active Member Licensed User


    Monsterman, buy the program then all your problems are over!:sign0060:
  5. Monsterman22

    Monsterman22 Member

    Ofcause I will buy the license....not just yet.

    Any good .exe examples of ImageLibEx??(Other than rotate.exe):)
  6. Monsterman22

    Monsterman22 Member

    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?
  7. klaus

    klaus Expert Licensed User

    It's the same in ImageLibEx.
    But you can use in both libraries.
    Best regards.
  8. Monsterman22

    Monsterman22 Member

    Hello Klaus.
    I have tried.....Can't figure the proper syntax.Can you help me out please?

    Bitmap.GetPixel returns such values as
    etc .They don't look like RGB :)
  9. specci48

    specci48 Well-Known Member Licensed User

    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:
    Dim Type (R,G,B) clr
    clr() = GetRGB(
    Msgbox("Red=" & clr.R & " Green=" & clr.G & " Blue=" & clr.B)

  10. klaus

    klaus Expert Licensed User

    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

    Best regards.
  11. Monsterman22

    Monsterman22 Member

    I have more purpose. I need RGB to edit and create sprites and bitmaps.
    I want to get a good knowledge of computer graphics :):)

    Thanks Specci I should have thought of it myself. Probably I've spent too much time at my comp today :)
  12. specci48

    specci48 Well-Known Member Licensed User

  13. appie21

    appie21 Active Member Licensed User


    i have this

    Dim Type (R,G,B) clr
    clr() = GetRGB(bmpBackground.GetPixel1(
    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
  14. klaus

    klaus Expert Licensed User

    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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice