x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Canvas extra pixels problem

Hello, I have found some weird problem while using canvas. I have been trying to create 2 boxes (filled and outlined) with FCanvasTileItem and FCanvasLineItem with size 256x16.

But there is a problem, it always creates additional pixels!

Example: http://i.imgbox.com/Y4oM699O.png

Another example: With FCanvasTileItem I've got in-game correct shape with my size 256x16 but with FCanvasLineItem I've got in-game wrong sized shape which is 257x17, and I'm 100% sure that it's because of the additional pixels.

Does anyone know how to solve this problem, I'm trying to create a some pixel art on my UI and these additional pixels make it really hard to make.

P.S. there is FCanvasBoxItem to draw outlined boxes but it's broken, if you try to draw 256x16 it will return 257x17 with broken corners.

Product Version: Not Selected
Tags:
more ▼

asked Jan 13 '15 at 08:50 PM in C++ Programming

avatar image

Rezental
88 5 10 18

avatar image Rezental Jan 14 '15 at 05:00 PM

I think I have found another problem, no matter what I try I cannot set alpha channel of FCanvasLineItem at all.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question