C# The reason why SKBitmap cannot be read.
$30-250 USD
Teslim sırasında ödenir
public List<Tuple<string, SKBitmap>> LoadImagesToMemoryAsync(string directoryPath)
{
// Get the paths of all .png files in the specified directory.
string[] filePaths = [login to view URL](directoryPath, "*.png");
// Loop through each file path and load the corresponding image into memory.
foreach (string filePath in filePaths)
{
// Extract the file name from the file path.
string fileName = [login to view URL](filePath);
// Read the file data into a byte array.
byte[] fileData = [login to view URL](filePath);
// Convert the byte array to a MemoryStream.
using (MemoryStream stream = new MemoryStream(fileData))
{
// Decode the image from the stream into a SKBitmap object.
using (SKBitmap bitmap = [login to view URL](stream))
{
// If the SKBitmap object is not null, add it and its file name to the imageList.
if (bitmap != null)
{
[login to view URL](new Tuple<string, SKBitmap>(fileName, bitmap));
}
}
}
}
return imageList;
}
List<Tuple<string, SKBitmap>> imageList = LoadImagesToMemoryAsync(@"c:\img");
using (SKBitmap testIMG = [login to view URL](x => [login to view URL] == "[login to view URL]")?.Item2)
{
if (testIMG != null)
{
using (var pixmap = [login to view URL]())
{
}
}
}
Proje NO: #36175769
Proje hakkında
Bu iş için 11 freelancer ortalamada $120 teklif veriyor
Could you give the exact error message you have from your C# code? I can fix your script for just $100 in several hours. Roman
Dear Client. Thank you for posting this project, and I'm very happy to bid on your project. I've read carefully your project details. I have rich experiences related to this project. Your satisfaction with the project Daha Fazla
Hi there, I am a professional full-stack .Web developer with more than 3 years of rich experience in .Web development and I am 100% confident that I am perfectly fit for this job. Please send me a message in chat so we Daha Fazla
Hi, Not sure If I understand it's correct but you are missing initialization for imageList List<Tuple<string, SKBitmap>> imageList = new List<Tuple<string, SKBitmap>>(); If it doesn't help, could you please drop me a Daha Fazla
Hello, how do you do? I can't set my bid to 20$ bucause your budget is 30$ or above. I have read through your source code and get what you want. I have done something like this before, so I can do it in about 2 hours. Daha Fazla
Hello! Could you provide a runnable sample project and input file sample? What exception is displayed?
Hi Greetings! I am available right now for the project discussion and can start the project on an immediate basis. I have understood your project requirement I have7++ experience in design and development. I can ha Daha Fazla
I own a great amount of knowledge of the specific problem. I work on many projects in the Computer department that I work in. I am eager to introduce rigid solutions to the problem. At first preparation, the step exam Daha Fazla
Hi, I have debugged your code in Visual Studio and have found the problems. If your problems are only within this piece of code that you shared, I can gladly reveal the problems and the solution to you.