SetPixel should NEVER throw an exception for which the caller isn't at fault
This commit is contained in:
parent
ec79785511
commit
87e6eb8269
@ -31,6 +31,7 @@ namespace UniversalEditor.ObjectModels.Multimedia.Picture
|
||||
SetPixel(color, (int)lastAddedLocation.X, (int)lastAddedLocation.Y);
|
||||
lastAddedLocation.X++;
|
||||
}
|
||||
[System.Diagnostics.DebuggerNonUserCode]
|
||||
public void SetPixel(Color color, int x, int y)
|
||||
{
|
||||
if (x >= mvarWidth || y >= mvarHeight)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user