locked
I want to move the image displayed in SkiaSharp by tapping, swiping, or pinching. I am displaying RRS feed

All replies

  • User369979 posted

    but it does not work Could you specify which part are you stuck in? Could you display images by this:

    string resourceID = "SkiaSharpFormsDemos.Media.SeatedMonkey.jpg";
    Assembly assembly = GetType().GetTypeInfo().Assembly;
    
    using (Stream stream = assembly.GetManifestResourceStream(resourceID))
    {
        bitmap = SKBitmap.Decode(stream);
    }
    
    Thursday, May 14, 2020 5:40 AM
  • User391493 posted

    The code below shows the image

    ?????

    for (YY = BY; YY <= EY; nY++)
    {
        for (XX = BX; XX <= EX; nX++)
        {
            string url = "";
    
            url = "https://cyberjapandata.gsi.go.jp/xyz/std/" + Zoom + "/" + XX + "/" + YY + ".png";
    
            try
            {
                var httpClient = new HttpClient();
                using (Stream stream = await httpClient.GetStreamAsync(url))
                using (MemoryStream memStream = new MemoryStream())
                {
                    await stream.CopyToAsync(memStream);
                    memStream.Seek(0, SeekOrigin.Begin);
    
                    bitmaps.Add(SKBitmap.Decode(memStream));
                }
            }
            catch (Exception ex)
            {
                await DisplayAlert("Error", ex.Message, "OK");
            }
        }
    
    }
    
    Thursday, May 14, 2020 6:17 AM
  • User369979 posted

    What's the issue here? You only said but it does not work. Try to specify what you've done and what's the problem.

    Thursday, May 14, 2020 6:41 AM