-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce usage of geometry types from System.Drawing namespace #83
Comments
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 10, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 10, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 10, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 10, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 11, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 11, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 11, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 11, 2015
anders9ustafsson
added a commit
to anders9ustafsson/fo-dicom
that referenced
this issue
Sep 11, 2015
anders9ustafsson
added a commit
that referenced
this issue
Sep 13, 2015
Moved System.Drawing dependencies to separate files. Connected to #83
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To facilitate the adaptation to portable class libraries, usage of geometric types from the
System.Drawing
namespace (e.g.Point
,SizeF
,Rectangle
) should be kept at a minimum. Usage should be avoided completely in the public API. Ideally, theSystem.Drawing
geometry types should only be used when required by the signature of a called method and there is no available alternative. Cases where this might occur is when calling e.g.Graphics.DrawImage
and similar methods.There is already a suitable replacement for
System.Drawing.Point
in theDicom.Imaging.Mathematics
namespace, namelyPoint2
. Types analogous toPoint2
may be implemented to cover up for otherSystem.Drawing
geometry types to maximize the portability of the library.The text was updated successfully, but these errors were encountered: