PCL profile 111 version of PNGCS#11
Open
anders9ustafsson wants to merge 17 commits into
Open
Conversation
|
Hi anders9ustafsson, I was trying out your updates to the library but I'm running into the issue that all images appear black. Take for example this test using the test files included in the project: SampleCreateOrange.Create("test.png", 500, 500); Any clue why this could be? |
|
Ah I found the issue. In the Png.End method the Dispose function was called on the datDeflateStream. This however never calls the Close method internally (since it's not overriden from the Stream class). After manually calling that close method it now works. This should be fixed a bit nicer though. |
|
#I fixed some issues on your code, please see my pull request :). |
Fixed the writing issues for PNG and increased the max size of Png's because why have that?
kekekeks
added a commit
to kekekeks/pngcs
that referenced
this pull request
Nov 26, 2018
more attached props intelisense
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dear Hernan,
Many thanks for an impressive work with this library!
Please find this pull request providing a separate solution containing a PCL profile 111 class library of pngcs, and a version of SamplesTests (.NET 4.5) that reference the PCL library.
Profile 111 means that the following platforms can be targeted:
Thus, this pull request also resolves issue #4.
In all honesty, I have not been able to fully run the samples application, since I could not locate the test suite, so the PCL library is still untested.
The main differerence between the .NET (4.5) and the PCL library is that
FileHelperhas been omitted from the PCL project. A user of the PCL library thus have to replace theFileHelpercalls with their platform equivalents when the PCL library is invoked.I have made some bug fixes that are not related to PCL. I have as much as possible tried to make specific commits for each sub-issue, so it should be fairly straightforward from each individual commit which changes that have an impact on the original .NET project.
I have used compiler directive PORTABLE where I have found it useful to provide different implementations for the .NET-only and the PCL library.
Please let me know if you have any concerns with this pull request.
Thanks in advance!
Anders Gustafsson
Cureos AB
PS. The portable solution is intended for Visual Studio 2013 and higher. The cost-free Visual Studio 2013 Community version should be sufficient.