Comments (14)
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.
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.
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.
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.
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.
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.
Can Help use UpdateLayeredWindow with a blend function?
Original comment by [email protected]
on 3 Feb 2011 at 6:19
from ardesia.
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.
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.
Original comment by [email protected]
on 2 Aug 2011 at 1:51
- Added labels: Ardesia, Windows
from ardesia.
Original comment by [email protected]
on 2 Aug 2011 at 1:56
- Added labels: OpSys-Windows
from ardesia.
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.
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.
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)
- Ardesia not returning mouse functions HOT 24
- ubunto software center installation HOT 3
- Separate control for text size HOT 1
- Ardesia not work at Ubuntu 13.04 HOT 19
- Cannot compile Ardesia on Fedora 18 HOT 2
- Windows 8 Dual Monitor Problem HOT 2
- Spotlighter 0.3 segfaults HOT 1
- Menu bar not working in KDE HOT 1
- Request: hotkeys please HOT 4
- Please make tool bar floating HOT 1
- No functionality on lubuntu 13.10
- No buttons in sidebar (gtk's issue?)
- Toolbar blank on Ubuntu 13.10 running XFCE
- Cannot use
- Black images saved on Windows
- Patch for /trunk/ardesia/desktop/ardesia.desktop.in
- ardesia lubuntu 14.10
- Ardesia doesn't work on dual screen configs
- Ardesia unusable with fullscreen apps
- ardesia don't draw anything on Xubuntu 14.04.1 LTS _Trusty Tahr_ - Release i386
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ardesia.