The engine is based on the symbolic graph for the Indian project.
5 USDDrawSymbol(X, Y, Color, Width, Height, startX, startY, endX, endY)
Obviously, no standard methods will help and you need to write your own.The problem I got on during the development is the impossibility to get a graphic symbol from the font file (but better directly from the system).There is very little information on the internet about this.I need an optimal and comprehensible way to obtain a glyph, as well as, if possible, a vector-type converter of a symbol into a rough so that I can understand and restore the methods according to my needs.I hope that task will not make a lot of effort.
Пишу игру на C# Visual Studio Windows Forms.
Специфика графики моей игры в том, что все визуальные образы отображаются в виде набора символов на экране. Это не совсем символьная матрица так как некоторые объекты могут передвигаться вне символьной сетки. Спрайты не подойдут так как в проекте принципиально важна оптимизация.
По сути все, что мне нужно это метод который будет выводить символ в окно формы с особыми параметрами:
DrawSymbol(X, Y, Color, Width, Height, startX, startY, endX, endY)
Очевидно что никакие стандартные методы не помогут и нужно писать свой.
Проблема на которую я натолкнулся в ходе разработки это невозможность получить глиф символа из файла шрифта(но лучше прямо из системы). В интернете крайне мало информации по этому поводу. Мне нужен оптимальный и понятный способ получения глифа, а так же при возможности преобразователь векторного вида символа в растровый что бы я смог разобраться и перестроить методы под свои нужды. Надеюсь такая задача не составит много труда
Client's feedback on cooperation with Artem Shuryhin
The engine is based on the symbolic graph for the Indian project.A quick and quality task.
Freelancer's feedback on cooperation with Dmitry Moiseyev
The engine is based on the symbolic graph for the Indian project.A great customer, a quick deal, accepted the project without any problems. I definitely recommend!
-
4420 181 0 Good night, have you already invented how you plan to store information about each symbol?
I’ve already installed a small projector that allows you to get the text that you want and extract it as a picture.
Write, I will send a demonstration (video).
Доброй ночи, Вы уже придумали каким способом планируете хранить информация о каждом символе?
Я уже накидал маленький проектик который позволяет получать текст нужного вам шрифта и выводить его в качестве картинки.
Напишите, я отправлю демонстрацию (видео).
-
public void DrawSimbol() { System.Drawing.Graphics formGraphics = this.CreateGraphics(); string drawString = "Simbol"; System.Drawing.Font drawFont = new System.Drawing.Font("Arial", 16); System.Drawing.SolidBrush drawBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Black); float x = 150.0F; float y = 50.0F; System.Drawing.StringFormat drawFormat = new System.Drawing.StringFormat(); formGraphics.DrawString(drawString, drawFont, drawBrush, x, y, drawFormat); drawFont.Dispose(); drawBrush.Dispose(); formGraphics.Dispose(); }
-
Current freelance projects in the category C#
Implementation of Telegram business logic
167 USD
What we have: .Net core project for developing a Telegram bot for employee surveys. The project works on the web using Docker, update reception via webhook implemented, all additional business logic functions implemented except the main one - the survey process. What needs to… C#, Bot development ∙ 6 proposals |
Write a program in C# using a database
13 USD
A program needs to be written in the C# programming language with database connection (My Sql), on the topic of designing and developing the "Workday Planning" database. Overall, part of the program already exists, but it is necessary to create a database and connect it to… C#, Databases ∙ 10 proposals |
Smart contract for token airdrop
637 USD
Need to create a smart contract for token giveaways, which will then be integrated into a Telegram bot. About the giveaway: - A person transfers crypto (USDT or other cryptocurrency...) to a specific wallet address. - The smart contract automatically sends tokens or NFTs to the… Blockchain, C# ∙ 4 proposals |
C# and go developer under refactoring list of services |
Software application “College Graduate Guide” (C# Windows Form)Create the GUI program "Visual Studio C#, Windows Forms" which provides: List of graduates; Adding and updating information; use of different filters and criteria to find specific graduates according to the professional direction, the place of work, the year of release; The… C#, Microsoft .NET ∙ 18 proposals |