> > Author: manolo
> > Date: 2010-03-30 04:18:45 -0700 (Tue, 30 Mar 2010)
> > New Revision: 7363
> > Log:
> > fl_copy_offscreen_with_alpha: when non-display output, asks if 
> > alpha-blending is possible
>
> Manolo, I just saw your commit, and that reminded me of this
> function fl_can_do_alpha_blending() that _needs_ to be checked.
>
> It's also used in src/Fl_Image.cxx, src/fl_draw_image_win32.cxx
> and at more places in src/Fl_Double_Window.cxx.
>
> I think that this could (or should) become an Fl_Device:: method,
> probably with an internal status value whether the method has been
> called before (as is done in the windows implementation with a static
> variable).
>
> This is all off the top of my head, I didn't recheck the code.
>
> This is also related to more general changes in fl_draw_image()
> that should be done to support alpha blending on all platforms
> (not only on Mac OS X as it is today).
>
> I'd like to read your comments, what do you think about it?
> Any ideas?
>
> Albrecht

I get (with the device demo) alpha blending to display successful
on all 3 platforms, not Mac OS only. Don't you ?

Printing-wise, it works only on Mac as of today.
My commit concerns WIN32. It consists in asking whether the printer
in use can blend, do the blending if the answer is positive,
and do a simple copy if it is negative. I think you wrote previously
that some MSWindows pseudo printer could blend (I don't remenber its
name, it's Microsoft's alternative to PDF). Could you retry that
with the new committed code ? Hopefully it should work.

Function fl_can_do_alpha_blending() is presently used for WIN32 only
(the X11 and Mac versions are never called). I believe that the
few committed changes do the necessary job. The asking for
blending capacity is repeated each time, rather than done once
as for display output, but this is not a problem because printing
is not an operation done many times per second.

I don't see how to improve alpha-blending to printers beyond what we
have now.

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to