Bugzilla – Attachment 188141 Details for
Bug 155912
Rendering problems in conversion of internal vcl bitmap formats transparency->alpha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Debug patch for master that prints the initial color of a VirtualDevice's alpha mask after being resized
alphamaskprintstartingcolor.txt (text/plain), 1.41 KB, created by
Patrick Luby (volunteer)
on 2023-06-30 18:06:12 UTC
(
hide
)
Description:
Debug patch for master that prints the initial color of a VirtualDevice's alpha mask after being resized
Filename:
MIME Type:
Creator:
Patrick Luby (volunteer)
Created:
2023-06-30 18:06:12 UTC
Size:
1.41 KB
patch
obsolete
>diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx >index 4d10f317e93c..2c0b12bc4da0 100644 >--- a/vcl/source/gdi/virdev.cxx >+++ b/vcl/source/gdi/virdev.cxx >@@ -25,6 +25,7 @@ > > #include <vcl/pdfextoutdevdata.hxx> > #include <vcl/virdev.hxx> >+#include <vcl/BitmapReadAccess.hxx> > > #include <ImplOutDevData.hxx> > #include <font/PhysicalFontCollection.hxx> >@@ -380,6 +381,26 @@ bool VirtualDevice::ImplSetOutputSizePixel( const Size& rNewSize, bool bErase, > mpAlphaVDev->SetMapMode( GetMapMode() ); > > mpAlphaVDev->SetAntialiasing( GetAntialiasing() ); >+ >+ Bitmap aBitmap( mpAlphaVDev->GetBitmap( Point(), rNewSize ) ); >+ Bitmap::ScopedReadAccess pRead(aBitmap); >+ >+ if (pRead) >+ { >+ for (sal_Int32 nY = 0; nY < sal_Int32(rNewSize.Height()); ++nY) >+ { >+ Scanline pScanlineRead = pRead->GetScanline(nY); >+ for (sal_Int32 nX = 0; nX < sal_Int32(rNewSize.Width()); ++nX) >+ { >+ BitmapColor aBmpColor >+ = pRead->HasPalette() >+ ? pRead->GetPaletteColor(pRead->GetIndexFromData(pScanlineRead, nX)) >+ : pRead->GetPixelFromData(pScanlineRead, nX); >+ fprintf( stderr, "Here: %i %i %i %i %i\n", nX, nY, aBmpColor.GetRed(), aBmpColor.GetGreen(), aBmpColor.GetBlue() ); >+ } >+ } >+ } >+ pRead.reset(); > } > > return true;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 155912
:
187972
|
187973
|
188073
|
188074
|
188084
|
188091
|
188092
|
188093
|
188131
|
188132
| 188141 |
188163
|
188222
|
188233
|
188268
|
188395
|
188419
|
188515
|
188536
|
188541