Window API to draw the window title in Win 7, 8 [closed] - winapi

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Does anyone know which API that Windows uses to draw the window title in Win 7(Aero theme) and Win 8?
I've tried to check with API Monitor tool, but don't see any API to draw the title.
Please advise.
Thanks.

It's been a long time since I did these things, but just googling it (three search phrase attempts) I ended up at DrawFrameControl.
Disclaimer: haven't tested.
Update: as noted in the comments DrawFrameControl won't do the job. And simple testing indicates that neither will DrawCaption. Apparently one has to use the theme functionlity, for which I found an example of drawing a window caption at (http://msdn.microsoft.com/en-us/library/windows/desktop/bb688195%28v=vs.85%29.aspx#appendixb). Essentially this code uses GetThemeSysFont to obtain the caption font and then DrawThemeTextEx to draw the caption.
New disclaimer: haven't tested the GetThemeSysFont plus DrawThemeTextEx combo, since this turned into quite a bit of work!

Related

How to remove freezes which are called by image decoding [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
When i start moving in game, i see some freezes, that happened only once, after recording with dev tools, i saw that freezes are called by Image Decode(as i understand it's decoding textures for my geometries). So is there any way to "precode" images, and start game without that freezes?
recorder screen
One solution to mitigate this problem is the usage of ImageBitmap. With this API, the image decode is going to happen in a separate thread without blocking the animation loop. In three.js you can use ImageBitmapLoader as a more performant substitute to ImageLoader. Have a look at the following example to see the loader in action:
https://threejs.org/examples/webgl_loader_imagebitmap.html

How was this animation made? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
i found an interesting effect on this site: https://iohk.io/
If you move your mouse around the effect will follow and change its colors, im really fascinated and wonder if there is a term for this kind of effect i can look into so i can learn how this was done.
While checking the source code i found the term "canvas", but its a huge topic.
Im not a developer myself and only know HTML/CSS right now, so please keep this in mind when answering.
Thanks in Advance.
http://vincentgarreau.com/particles.js/
That is the site from the creator, i haven't look in to it that much but all the information you need should be there.
You can use the menu to the right to change the way it looks.
Having looked at the page I initially thought of WebGL. On inspecting the page my suspicions were confirmed.
The page you linked to is using a ParticlesJS which looks like a library over WebGL. Given you are not a developer then this may be a little beyond you.

Emojis in Segmented Control [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I have emojis used in the different segments for my Segmented Control. When I select a segment, the selected segment highlights (indicates which one was selected), and the emoji suddenly becomes all white. Is there anyway to fix this issue? Thanks!
I use follow code and it worked for me.
OC:
[segmentedControl setTitleTextAttributes:#{NSForegroundColorAttributeName:[UIColor whiteColor]} forState:UIControlStateSelected];
Swift:
let segmentedControl = UISegmentedControl(items: ["😊","😢","moon"])
segmentedControl.setTitleTextAttributes([NSForegroundColorAttributeName:UIColor.whiteColor()], forState:.Selected)
I believe this is because the coding for emoji is not compatible with UIViews.
What you can do is select Momentary for the State. It will still disappear on click but will quickly come back.
Unfortunately the segment won't stay hilighted blue like you probably want though.

Embedding camera readable data on an image [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a set of images on a data set and I want to create an application(on android initially) so that the application would be able to take an image and match it with an image on my data set. I tried using image recognition algorithms but I had very poor recognition chances. Is there any way to unobtrusively embed data on the image itself such that when a printed version of the image is scanned by the application, it would be able to extract the embedded data? I need some direction in this regard because I seem to be punching in the dark since I haven't worked on anything like this before.
Thanks
You can try with OpenCV4Android, here is the introductory tutorial. Following SO will give you some more- Looking for OpenCV android tutorial

Trouble identifing this barcode, using zbar and redlaser [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
So I've got this barcode (which I will attach) and I don't know how to decode it, both zbar on my desktop and redlaser on my phone cannot read it. After a lot of googling, and reading on forums I can't find similar barcodes... Any suggestions?
https://dl.dropboxusercontent.com/u/13940239/2013-04-30%2009.36.28.jpg
Sorry I realised I needed a higher repuation to post an image, here is a dropbox link
After identifing the barcode, can anyone help with zbar decoding the barcode. I'd like do set this up so the software will decode similar barcodes...
It is a Code 39 barcode with a 3 bar widths char gap, which reads '1004876532'. Almost any standard bar code reader should be able to read this type. This online bar code decoder was able to read a cleaned up version of the image you originally posted.
*the yellow arrows represent the 3 bar width character gaps.
it seams to be Code_39 format, value: 1004876532

Resources