I worked on some GDI + code in .NET and studied my lessons very hard. Simple things like:
... etc. I am sure that there is much more that experienced people can add to this.
What good rules should be followed when using GDI + or any graphics library in general?
One helpful tip per post would be nice. Thanks.
( /) ( Dispose wrapping if IDisposable).
, , .
, / . , .
, , ; , , . .
, , API, ( GDI +), .
, .
, ( GDI +, API, ). , (, ), .
GDI Gotchas, .
GDI +, , :
, GDI + .NET, - Matrix Transform Graphics. ( ++/CLI):
Matrix
Transform
Graphics
g->Transform->Translate(100.0f, 250.0f); // WRONG. Will not have any effect.
Transform . , , . , (MultiplyTransform, TranslateTransform, ScaleTransform ..), .
MultiplyTransform
TranslateTransform
ScaleTransform
g->TranslateTransform(100.0f, 250.0f);
, : http://steveperks.com/post/Fun-With-GDI2b-Bugs.aspx
Source: https://habr.com/ru/post/1715439/More articles:How to catch sigpipe in iphone application? - objective-cDevexpress components such as Java (JSF)? - javaAttachmentCollection attachmentCollection in C # - c #Programmatically check database structure in C ++ - databaseRunning a Ruby script in a Rails application - ruby | fooobar.comWhat should I do or not do to avoid the Delphi "push dword" error. - delphiJQuery UI slide effect creates a new line - javascripthttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1715442/javascriptcss-token-field-much-like-cocoas-one&usg=ALkJrhibUNyDGai1SrUhjz0UQciMKePLiARouting issue in Asp.Net Mvc - asp.net-mvcIs there a difference between Binary (16) and VarBinary (16) in MySQL - mysqlAll Articles