I tried with a2dAggDrawer. It does not worked for me.
A2dAggDrawerRGBA and wxImage without a2dImageRGBA does not worked also.

a2dCanvasDocumentIOHandlerImageOut sounds good, I will look at it.
But this time it was enough to get a wxImage. The file, I needed it only for
testing.

> Just curious, did not know this could be done :-)
You can expand your samples :-)

Süleyman


> -----Ursprüngliche Nachricht-----
> Von: klaas.holwerda [mailto:n...@klaasholwerda.nl]
> Gesendet: Mittwoch, 21. Dezember 2011 19:06
> An: wxart2d-users_dev@lists.sourceforge.net
> Betreff: Re: [Wxart2d-users_dev] wxBitmap with Alpha-Channel from my
> Canvas
> 
> a2dCanvasDocumentIOHandlerImageOut is for writing a document to a file as
> image (look in samples for
> usage).
> Using any a2dDrawer is possible.
> It does not limit the resolution to only the window size pixels.
> 
> But it seems you already solved it.
> 
> Wonder if a2dAggDrawer could have solved it too?
> 
> Are is a2dImageRGBA saving you this time?
> 
> Just curious, did not know this could be done :-)
> 
> Klaas
> 
> 
> On 21-12-2011 17:20, Süleyman Demir wrote:
> > Hi Klaas,
> >
> >> Do you want to place a transparent bitmap on the canvas?
> >> Or do you want to see the desktop or something what is behind your
> >> application?
> >> Like a sort of overlay.
> > neither of the two.
> >
> > Need a wxImage or a wxBitmap of my canvas and would like to save it in a
> > file. Now when I open the file in a viewer the background should
> > transparent, so that I can see only the objects.
> >
> > a2dAggDrawerRgba and a2dImageRGBA have done the work.
> >
> > a2dCanvas m_canvas;
> > a2dAggDrawerRgba m_drawer2d;
> > m_canvas->SetBackgroundFill (a2dFill (wxColour (255, 255, 255, 0),
> > a2dFILL_SOLID)); .
> > .
> > .
> > a2dImageRGBA img_rgba = m_drawer2d->GetImageBuffer (); wxImage img =
> > img_rgba.GetImage ().Mirror (false); img.SaveFile ("_hihihi.png",
> > wxBITMAP_TYPE_PNG);
> >
> > A png-File with a transparent Background ;-)
> >
> > Thank you for your help!
> >
> > Süleyman
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: klaas.holwerda [mailto:n...@klaasholwerda.nl]
> >> Gesendet: Mittwoch, 21. Dezember 2011 14:29
> >> An: wxart2d-users_dev@lists.sourceforge.net
> >> Betreff: Re: [Wxart2d-users_dev] wxBitmap with Alpha-Channel from my
> >> Canvas
> >>
> >> Sorry i don't understand the question.
> >>
> >> Do you want to place a transparent bitmap on the canvas?
> >> Or do you want to see the desktop or something what is behind your
> >> application?
> >> Like a sort of overlay.
> >>
> >> At least a2dAggDrawerRgba has an alpha channel.
> >> But never tried it.
> >> In principle a a2dCanvas is a wxWindow, so if you can do such a thing
> with
> >> a wxWindow, it can be
> >> done here.
> >>
> >> But maybe you prefer without a double buffer approach, and instead just
> >> draw objects.
> >> Like a2dDcDrawer is used to draw on a printer without bitmap in
> between.
> >>
> >> But again it not clear to me what you want.
> >>
> >> Klaas
> >>
> >> On 21-12-2011 9:15, Süleyman Demir wrote:
> >>> Hi there, need a wxBitmap with an alpha channel from my canvas.
> >>> I want to set the background transparent so that i can only see the
> >> objects
> >>> in the bitmap.
> >>>
> >>> is that possible?
> >>>
> >>>
> >>
> 
> 
> --------------------------------------------------------------------------
> ----
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Wxart2d-users_dev mailing list
> Wxart2d-users_dev@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev


------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to