[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Could you spoonfeed me how to output an image by c#? I want to

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 10
Thread images: 1

File: c-sharp-tutors-online.png (5KB, 375x375px) Image search: [Google]
c-sharp-tutors-online.png
5KB, 375x375px
Could you spoonfeed me how to output an image by c#? I want to do a 8100x8100px "mosaic" image of 54 images in a row
>>
>>62410928
https://google.com/search?q=c%23+save+image
>>
>>62410993
>know nothing nigger smugly directs pleb to google shit full of subversion red herrigns and misdirection
It's funny because you have no idea how to do anything with computers.
>>
If you don't care about any more than 8bpc then you can use System.Drawing.Bitmap, else use System.Windows.Media.Imaging.WriteableBitmap.

Whatever way you choose, you'll have to copy the image data and arrange it in memory before writing to buffers of said objects. It's essential to account for stride (pixel row padding in memory) and in memory channel arrangement (BGR).
>>
Full project rundown:
I want to create array to download and store images from my folder named {1,2,3...2916}.jpg resized to 150x150px
then display these images in 54x54 grid to create mosaic and save it as single image

I did that in html but because of limitations (resolution?) it only displayed ~16 images in a row and then skipping to the next one
>>
>>62411311
>I did that in html but because of limitations (resolution?) it only displayed ~16 images in a row and then skipping to the next one

Did you try CSS scroll properties? margin, padding and other stuff will affect output too.

The easiest way to do it would be with JavaScript on a canvas object, mozilla has a lot of good documentation on canvas manipulation.

If you still want to do it on C# you should look for a good library or else you would be reinventing the wheel.
>>
>>62410928
>>62411311
>>62411442
https://jsfiddle.net/8Lg6yv1x/
Here, change the images and loop the javascript code to shift between images and step 150px every iteration until the end of the canvas.
>>
>>62410928
C# is just augmented C++

Blind much?
>>
>>62411606
will check in a moment, thanks senpai UwU
>>
>>62410928
Just use imagemagick. The compose command is much faster and requires much less memory than the C# graphics library.
Thread posts: 10
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.