With this commit I reintroduce one pass scale, rotate and crop that
was located in grfmgr2.cxx (now in Bitmap class) and was used for
preparing bitmaps for displaying on screen. By default the combination
of two filters is used: bilinear, which is a similar algorithm than
the "old" one, but with the same result, and averaging algorithm. Bilinear
filtering is used for bitmap enlarging and shrinking till factor 0.6. Below
this bilinear gives bad results because of limited sampling. For such cases
averaging is used which is a simple algorithm for shrinking. In averaging
the algorithm calculates the average of samples which result is the new
pixel. Currently both algorithms are not optimised.
One pass scale, rotate and crop should only be used for displaying of
images.
Change-Id: I5a1330b58a7cbb6fde8546e16c3e8c140afca565
Deleted the function ImplDelData::IsDelete() and replaced all calls
to it with calls to ImplDelData::IsDead() directly. IsDelete () function
itself was only a simple wrapper to IsDead () (and mentioned as deprecated)
Change-Id: I71baf68801219cfbe2d2dc41d6bd5e419b9b4a87
When we do glyph fallback we check to see if the glyph is too large to fit the
space available, and if it is we try and rescale it smaller.
This worked wonderfully under Linux, but under Windows it seems that the
SalLayout impl keeps an old unscaled gdi font handle which would give visually
broken glyphs for me when the base font was smaller than the replacement font.
So, now instead rather than just changing the font for the fallback level, we
throw away the SalLayout using the old font, set the font for the fallback
level, and recreate a new SalLayout using the new font.
Hopefully this is the true reason behind the crashes of fdo#45355 although
that remains unreproducible for me.
Change-Id: I415b6e7a77777d4aa5e62079c52c6c18473c0ebd
Now, we have the password of private key and the certificate to
sign. Ready to use NSS and create necessary PKCS7 object using
these.
Change-Id: Id69487e92283059fcd558d33cf6a6128df0f50d9
Now, PDFWriterContext is used for signing information. GUI elements are
recorded to PDFWriterContext and used during signing process. Sign PDF
checkbox and Location/Contact Info/Reason boxes are all working now.
Change-Id: I1d0cb53323707efa7e460431dd1519bcd34e8b29
The Lanczos scaling is of very good quality, but it's rather slow,
which can be very noticeable with large images, so it's not a very
good default for everything. And in general, it's not good to refer
to a specific algorithm when all one usually wants is fast/default/best.
Some of these changes are a bit of a guess between default/best,
but the general logic is that best should be used only for images
that won't be large or where the possible waiting does not matter.
Change-Id: I53765507ecb7ed167890f6dd05e73fe53ffd0231
All of those defines (should) not be used at any point in the code.
False positives may exist, because some macro names are getting
generated by some template/macro foo. This is the version which
compiled fine for me.
Also there are many commented out lines removed.
Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8