Giter VIP home page Giter VIP logo

Comments (14)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
The problem is that the gdk_screen_get_rgba_colormap doesn't work correctly 
under Windows and then Ardesia is working without an alpha channell.
We must investigate furthermore if exist a way to work with RGBA color with 
Cairo on windows.
In the current implementation on windows in order to have a transparent window 
I use
a layered window using the black as the "transparent color" but the colormap is 
rgb.

Original comment by [email protected] on 9 Jan 2011 at 3:11

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Ypu can read an explanation about 
this problem on http://cairographics.org/samples/dotnet-gdi-rendering/
and a sort of solution also

Original comment by [email protected] on 10 Jan 2011 at 3:47

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
The example on http://cairographics.org/samples/dotnet-gdi-rendering/
is written in C# and works using an other image surface. This is out of our 
scope because we want have a surface connected to the gtkwindow (or the HDC 
associated)

Original comment by [email protected] on 11 Jan 2011 at 4:40

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
I have attempt to create a surface with cairo_win32_surface_create_with_ddb
in this way:

cairo_win32_surface_create_with_ddb(hdc, CAIRO_FORMAT_ARGB32, 
gdk_screen_width(), gdk_screen_height());

But I have a not paintable white window as result. It doesn't work  

Original comment by [email protected] on 11 Jan 2011 at 5:00

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
The goal is have a cairo surface and cairo context attached to the GdkWindow as 
done 
with this code (copied by annotation_window_callback.c):

--------------------------------------------------------------------------------
-----
/* The hdc has depth 32 and the technology is DT_RASDISPLAY */
      HDC hdc = GetDC(GDK_WINDOW_HWND(data->annotation_window->window));
      /* 
       * @TODO Use an HDC that support the ARGB32 format to support the alpha channel and the highlighter
       * In the documentation is written that the now the resulting surface is in RGB24 format
       * 
       */
      cairo_surface_t* surface = cairo_win32_surface_create(hdc);

      data->annotation_cairo_context = cairo_create(surface);

--------------------------------------------------------------------------------
---

but using ARGB32

Original comment by [email protected] on 11 Jan 2011 at 5:33

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
If will achieve the goal to have a paintable surface with alpha could be 
possible deny the layered window usage to have the transparent window.

Original comment by [email protected] on 11 Jan 2011 at 5:35

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Can Help use UpdateLayeredWindow with a blend function?

Original comment by [email protected] on 3 Feb 2011 at 6:19

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
I have tried to use the UpdateLayeredWindow with a blend function but I have 
the same misbehaviour

Original comment by [email protected] on 9 Mar 2011 at 1:09

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
http://comments.gmane.org/gmane.comp.lib.cairo/21593

Seems that the not RGBA colormap is a gdi limit that will be fixed by the GTK3

Original comment by [email protected] on 22 Jun 2011 at 12:09

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024

Original comment by [email protected] on 2 Aug 2011 at 1:51

  • Added labels: Ardesia, Windows

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024

Original comment by [email protected] on 2 Aug 2011 at 1:56

  • Added labels: OpSys-Windows

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
The Gtk 3 is out; the bug could be fixed porting the code from the gtk 2 to the 
gtk 3

Original comment by [email protected] on 9 Oct 2011 at 11:52

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Ardesia on subversion repository has been ported on gtk3.
Are there some volunters that want to try to build Ardesia on WIndows and 
update the issue status.

Original comment by [email protected] on 27 Aug 2012 at 7:21

from ardesia.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 14, 2024
Ardesia is ported on GTK3 that this issue has become invalid.

Original comment by [email protected] on 17 Sep 2012 at 5:06

  • Changed state: Invalid

from ardesia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.