Jump to content

To draw a string with colors into a GDI screen


Recommended Posts

Hello people, I have started AUTOIT a few days ago and I love it.

My goal is to make 3D graphics, but not built in ones. I have my reasons.

I have a virtual color page made in vir[$y] and i want this string with colorbytes copied into a GDI.

SETPixel is way too slow for that and I am stuck with find the correct method.

Can anyone help me out please?

I salute you, fellow coders :)

Link to comment
Share on other sites

1 hour ago, Sidley said:

Not entirely sure what you're looking to achieve here, but if it's just to present a coloured string then check out the _GDIPlus_GraphicsDrawStringEx function.

No I have a string filled with colorbytes, it's not about characters, so you can expect 4 byte groups which represent alpha,red,blue, green. Just to make things faster than just plotting.

Link to comment
Share on other sites

Look my avatar. We could help you much better on your issue if we could see your code. 

 

Regards.

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Link to comment
Share on other sites

Sorry but showing a code would inappropriate at this time. I can't even think about where to start.

I just have 1 simple question:

I have a string filled with colorbytes and i want the whole string to be put on a screen as fast as possible

plot can not do that.

 

 

 

Link to comment
Share on other sites

On 10/8/2020 at 1:17 AM, JockoDundee said:

yeah I was already wrestling with this one, then I realised there is just no normal way of simply put a colorbyte string somewhere. I investigated this, and I wanted to see if i could fake the handle somehow, but it showed me a pointer. So, another dead end. Why are there allways so many dead ends one might think. Anyway, I think I solved it, because this routine could also handle a .BMP file instead of a .GIF file. And I can make BMP'S in a string. That should do it. I'll just keep wrestling, thanks 😊

Link to comment
Share on other sites

6 hours ago, shaolindragon said:

yeah I was already wrestling with this one, then I realised there is just no normal way of simply put a colorbyte string somewhere.

Honestly, you seem confused.

What do you mean no “normal way” of putting a colorbyte string somewhere? What’s a normal way?

And while were at it, what exactly do you mean by “colorbyte string”? It’s not a term of art typically used in GDI.

6 hours ago, shaolindragon said:

I investigated this, and I wanted to see if i could fake the handle somehow, but it showed me a pointer...

You don’t need to “fake the handle”, you use the handle to draw your “string”.

6 hours ago, shaolindragon said:

So, another dead end. Why are there allways so many dead ends one might think.

One might also think “hey maybe I should post some code”.

6 hours ago, shaolindragon said:

Anyway, I think I solved it, because this routine could also handle a .BMP file instead of a .GIF file. And I can make BMP'S in a string. That should do it.

Oh you solved it, now? Using just dead ends?  And the routine doesn’t “also handle a .BMP file”, it handles a string in BMP format, which is about as close a thing to a “colorbyte string” as you are gonna get.  That’s why it was recommended in the first place.

6 hours ago, shaolindragon said:

I'll just keep wrestling, thanks 😊

Wait, is it solved or not? 
Like I said, you seem confused.

Code hard, but don’t hard code...

Link to comment
Share on other sites

3 hours ago, JockoDundee said:

Honestly, you seem confused.

What do you mean no “normal way” of putting a colorbyte string somewhere? What’s a normal way?

And while were at it, what exactly do you mean by “colorbyte string”? It’s not a term of art typically used in GDI.

You don’t need to “fake the handle”, you use the handle to draw your “string”.

One might also think “hey maybe I should post some code”.

Oh you solved it, now? Using just dead ends?  And the routine doesn’t “also handle a .BMP file”, it handles a string in BMP format, which is about as close a thing to a “colorbyte string” as you are gonna get.  That’s why it was recommended in the first place.

Wait, is it solved or not? 
Like I said, you seem confused.

 

Link to comment
Share on other sites

it is amazing how fanatic you defend yourself. if i sound confused is it me or is it you?

 

I have never seen a person that does not understand the term colorstring.

 

in asperger language that would be: a collection of characters that represent a series of bytes that form a color, is that clear enough? or do you still not understand that term?

I come from the old days of assembly programming. this autoit seriously sucks big time. whatever i want is just completely impossible without an intensive study.

 

and i won't anymore abstract terms for it, because then you get all freak out again, but this language is simply terrible ok?

 

have fun yourself!

 

Link to comment
Share on other sites

you know all you robots here, you might wanna look into a persons question ok? i have explained myself EXTREMELY WELL TO THE UTTER LIMITS OF MY BRAIN. or did I not??????? what other language should i speak to make myself even more clear? robotlanguage? are you bots? and why you need my code? that's gonna make things easier? wtf?

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...