mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Merge remote-tracking branch 'remotes/origin/master' into release/1.2.9
This commit is contained in:
commit
0323705513
276 changed files with 5382 additions and 3666 deletions
|
@ -322,7 +322,7 @@ namespace GreenshotPlugin.Core {
|
|||
|
||||
protected BitmapData bmData;
|
||||
protected int stride; /* bytes per pixel row */
|
||||
protected bool bitsLocked = false;
|
||||
protected bool bitsLocked;
|
||||
protected byte* pointer;
|
||||
|
||||
public static IFastBitmap Create(Bitmap source) {
|
||||
|
@ -726,8 +726,8 @@ namespace GreenshotPlugin.Core {
|
|||
/// </summary>
|
||||
public unsafe class FastChunkyBitmap : FastBitmap {
|
||||
// Used for indexed images
|
||||
private Color[] colorEntries;
|
||||
private Dictionary<Color, byte> colorCache = new Dictionary<Color, byte>();
|
||||
private readonly Color[] colorEntries;
|
||||
private readonly Dictionary<Color, byte> colorCache = new Dictionary<Color, byte>();
|
||||
|
||||
public FastChunkyBitmap(Bitmap source, Rectangle area) : base(source, area) {
|
||||
colorEntries = bitmap.Palette.Entries;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue