![]() |
|
[C#] sending an image of a color via color code - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] sending an image of a color via color code (/showthread.php?tid=5266428) |
sending an image of a color via color code - ze-slade - May 11, 2016 okay so on this app called palringo I want to make a bot that sends the color of whatever color is requested Eg. #0000 the only way I know how to send an image though is by putting a link so I'm not sure how I'd accomplish this considering I need a link of the image but I need the image to be a color. if that made any sense. * - BahNahNah - May 11, 2016 I think i understand. Heres how i think you should do it: 1) Create a bitmap with the Graphics library. 2) Save the bitmap to disk. 3) Upload the image to a image host like imgur. 4) Send the link to wherever you need to. * - Ninja - May 11, 2016 (May 11, 2016 04:31 PM)BahNahNah Wrote: I think i understand. Heres how i think you should do it: Im pretty sure you can skip saving the bitmap to disk. * - Odus - May 12, 2016 (May 11, 2016 06:14 PM)Ninja Wrote: Im pretty sure you can skip saving the bitmap to disk. ^ Send its bytes directly. Create a bitmap or whatever, call Clear on it from a Graphics object with your color and go from there. I think imgur accepts a base64 of your image. * - ze-slade - May 12, 2016 This is something like I want: http://html-color-codes.info/ but I want it to basically look for the color and send it via a link. |