Has anyone been successful rasterizing into a Xojo picture with alpha channel from a code-created PDF in the DynaPDFmbs Pro plugin? The following code gets me a (very nicely centered) raster image with a white background. Deleting the InitWhite line gets the same image, but with a black background. I want a transparent background or, at a minimum, one with my choice of color.
Call AlgoPDF.MyPDF.EndPage
GISx.RasterizedPDFimage = New Picture( 2 * DeepWindow.DeepCanvas.Width , 2 * DeepWindow.DeepCanvas.Height )
Dim myRasterizer As New DynaPDFRasterizerMBS( AlgoPDF.MyPDF , GISx.RasterizedPDFimage.Width , GISx.RasterizedPDFimage.Height )
Dim myPDFpage As DynaPDFPageMBS = AlgoPDF.MyPDF.GetPage( 1 )
Dim myRasterizerOptions As New DynaPDFRasterImageMBS
myRasterizerOptions.DefScale = myRasterizerOptions.kpsFitBest
myRasterizerOptions.InitWhite = TRUE
LocalReturn = myRasterizer.RenderPage( myPDFpage , myRasterizerOptions )
GISx.RasterizedPDFimage = myRasterizer.Pic
DeepWindow.DeepCanvas.Invalidate