Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Win2D, sharing CanvasBitmap

Win2D, sharing CanvasBitmap

Scheduled Pinned Locked Moved .NET (Core and Framework)
performancequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Don Rolando
    wrote on last edited by
    #1

    I am using Win2D and the Canvas control. Actually, it is two canvas controls and for both I am using the same image as input. Is it somehow possible to share a CanvasBitmap? Up to now I have to create two bitmaps and to call LoadAsync for each... that takes more time and memory than actually necessary. Cheers, Roland

    A 1 Reply Last reply
    0
    • D Don Rolando

      I am using Win2D and the Canvas control. Actually, it is two canvas controls and for both I am using the same image as input. Is it somehow possible to share a CanvasBitmap? Up to now I have to create two bitmaps and to call LoadAsync for each... that takes more time and memory than actually necessary. Cheers, Roland

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      Give this document a read: http://microsoft.github.io/Win2D/html/T_Microsoft_Graphics_Canvas_CanvasBitmap.htm[^] You must always consider searching for the problem over the Google. Most of the times the solution is available over the internet for you. Just a few times you've got to crop the solution before you can use it inside your own project. :-) Thanks.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      D 1 Reply Last reply
      0
      • A Afzaal Ahmad Zeeshan

        Give this document a read: http://microsoft.github.io/Win2D/html/T_Microsoft_Graphics_Canvas_CanvasBitmap.htm[^] You must always consider searching for the problem over the Google. Most of the times the solution is available over the internet for you. Just a few times you've got to crop the solution before you can use it inside your own project. :-) Thanks.

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        D Offline
        D Offline
        Don Rolando
        wrote on last edited by
        #3

        Hi, usually I am good in using Google... but so far I did not find any solution for this particular problem. And unfortunately your link is also just the standard MSDN page on how to load a resource with CanvasBitmap. But the documentation does not mention how to share ONE CanvasBitmap across TWO or more CanvasControls. Sorry, still searching an answer for my question. :) Or maybe this not possible...? Cheerio

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups