mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
Code quality changes, and added the possibility to set the amount of colors for the Quantizer.
This commit is contained in:
parent
3b1560390b
commit
77a92d98c3
92 changed files with 690 additions and 653 deletions
|
@ -27,19 +27,19 @@ namespace Greenshot.Drawing {
|
|||
/// <summary>
|
||||
/// Description of ObfuscateContainer.
|
||||
/// </summary>
|
||||
[Serializable()]
|
||||
[Serializable]
|
||||
public class ObfuscateContainer : FilterContainer {
|
||||
public ObfuscateContainer(Surface parent) : base(parent) {
|
||||
AddField(GetType(), FieldType.PREPARED_FILTER_OBFUSCATE, PreparedFilter.PIXELIZE);
|
||||
init();
|
||||
Init();
|
||||
}
|
||||
|
||||
[OnDeserialized()]
|
||||
[OnDeserialized]
|
||||
private void OnDeserialized(StreamingContext context) {
|
||||
init();
|
||||
Init();
|
||||
}
|
||||
|
||||
private void init() {
|
||||
private void Init() {
|
||||
FieldChanged += ObfuscateContainer_OnFieldChanged;
|
||||
ConfigurePreparedFilters();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue