iOS Question Drawing on Canvas without colors, only black, on some devices

Discussion in 'iOS Questions' started by skrjabin, Aug 15, 2019.

  1. skrjabin

    skrjabin Active Member Licensed User

    Hi,
    I have an Canvas-Array
    Code:
    Private RasterArrayGrafics() As Canvas
    and I want to draw on it:
    Code:
    RasterArrayGrafics(i).DrawBitmap(btmMonsters(iNr), rect_DestRect)
    RasterArrayGrafics(i).DrawCircle(i_drawMitte, 
    20dip5dipColors.Red, True0)
    RasterArrayGrafics(i).Refresh
    On my Tablet everything is OK, but on my iPhone 5 the bitmaps and circles are without color, only black.

    Do you have any idea, what the reason could be?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Hard to say based on the code you posted. Why do you need an array of canvases?
     
  3. skrjabin

    skrjabin Active Member Licensed User

    I have on a panel a Label-Array with 8 x 4 Labels, that represents several time positions of a rhythm. So each of this label owns a canvas, which can show the beat. On iPad it works. Only without colors on iPhone 5.
     

    Attached Files:

  4. Erel

    Erel Administrator Staff Member Licensed User

    The images are from Android. I recommend you to use ImageViews instead of labels. If you aren't able to solve it then upload a small project with the code.
     
  5. skrjabin

    skrjabin Active Member Licensed User

    Thank you! It is not the biggest problem and I try to solve it by myself with a bit time. If I cannot find any solution, and many users are crying, I will post the code here.
     
Loading...
  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