P
P
Pinkman2020-05-10 15:57:25
C++ / C#
Pinkman, 2020-05-10 15:57:25

How to generate an image in SI?

I want to know how you can make your own pictures (for example, in jpg or png format)? Let's say I want to generate a black image with a size of 100x100 pixels using a function, how can I implement this?
P.s. I found implementations in C++, but my head swells from classes and it is not clear::why::colons , I don’t understand them and I’m not in a hurry to understand them yet.
P.p.s. Can you recommend some literature?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander, 2020-05-10
@famousman204

To begin with, about the format itself https://ru.bmstu.wiki/%D0%9A%D0%BE%D0%B4%D0%B8%D1%...
Then https://habr.com/ru/post/ 102521/
briefly: beginning, description, table of quantums (pieces), data, end
But I would recommend taking a ready-made library if you need it urgently.
PS Colons are for specifying functions in classes, OOP and all that from C ++, there is also a lot of literature on this.

G
Griboks, 2020-05-10
@Griboks

1. create a bitmap image as a 100x100x3 array
2. convert it to jpg with any popular utility

R
Roman Mirilaczvili, 2020-05-10
@2ord

LibGD

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question