C# The reason why SKBitmap cannot be read.

Kapalı İlan edilme: 1 yıl önce Teslim sırasında ödenir
Kapalı 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]())

{

}

}

}

C++ Programlama C# Programlama C Programlama .NET Yazılım Mimarisi

Proje NO: #36175769

Proje hakkında

11 teklif Uzak proje Aktif 1 yıl önce

Bu iş için 11 freelancer ortalamada $120 teklif veriyor

gangabass

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(469 Değerlendirme)
7.5
HsaCreep

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

$140 USD in 7 gün içinde
(4 Değerlendirme)
4.4
coderedsolution

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

$250 USD in 7 gün içinde
(7 Değerlendirme)
4.2
nguyendauit

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)
2.7
Joeries

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

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(4 Değerlendirme)
2.9
u1035

Hello! Could you provide a runnable sample project and input file sample? What exception is displayed?

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0
softtrain

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

$250 USD in 7 gün içinde
(1 Yorum)
0.0
taifsami1

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

$140 USD in 7 gün içinde
(0 Değerlendirme)
0.0
zolnooriyan

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.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0