Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-08-15 00:12:26

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Question] Get a section of an image

I was wondering how I could load a Bitmap and get sections of it, for example EverybodyEdits blocks. So if I used the ID 9 i would get basic grey, and such.


signature.png

Offline

#2 2015-08-15 01:24:29, last edited by hummerz5 (2015-08-15 01:25:09)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Question] Get a section of an image

A quick google returns this stackoverflow question

Basically, Graphics has a DrawImage function. You take your destination image and copy from a source region. In this way, you could also resize the images... 16x16 could be 32x16 if you really wanted to stretch.

Offline

hummerz51439598269530535

Board footer

Powered by FluxBB

[ Started around 1732778774.4443 - Generated in 0.032 seconds, 10 queries executed - Memory usage: 1.38 MiB (Peak: 1.48 MiB) ]