blit
Jaggy paths when blitting an offscreen CGLayer to the current context
In my current project I need to draw a complex background as a background for a few UITableView cells. Since the code for drawing this background is pretty long and CPU heavy when executed in the cell[详细]
2023-04-12 01:29 分类:问答Blitting with a camera leads to seams (due to floating point errors?)
I\'m working on a tilemap implementation with blitting (in Flash but I don\'t think it\'s language relevant).The problem I\'m having is that as I pan my camera around, 1 pixel seams start to become vi[详细]
2023-03-30 01:30 分类:问答BitmapData.rect creates a new rectangle?
I was working on some blitting code today and after profiling it found that I was creating 1000s of new rectangles.I was shocked because I only had 1 or 2 different new Rectangle() calls or I was usin[详细]
2023-03-20 22:41 分类:问答Mask out white color from PNG or GIF image, blit it to canvas using any color
Source is either PNG or GIF where the pixels that should be \"colorized\" are white. Background can be either black or transparent, whichever is easiest.[详细]
2023-03-12 19:06 分类:问答SDL Render Text not showing up unless other surface cleared
I have a timer = TTF_RenderText_Solid( tfont, timeStr.str().c_str(), txtColor ); applySurface(500, 30, timer, screen);[详细]
2023-03-02 13:53 分类:问答How can I determine if I will draw offscreen when doing custom bitmap blitting in a view inside a scrollview in Android
I have subclassed View and do some bitmap drawing inside of the onDraw method. This view is then placed in a horizontal scrollview. Some of the time the bitmaps will not be visible since they are scro[详细]
2023-01-12 15:51 分类:问答Flash: combine two BitmapData objects via max( channel )
I have two BitmapData objects with alpha channels. I\'d like to combine them into a single one by using max(channel_image_one, channel_image_two) for each channel, including the alpha. Is there an eas[详细]
2022-12-18 15:07 分类:问答Fast rgb565 to YUV (or even rgb565 to Y)
I\'m working on a thing where I want to have the output option to go to a video overlay.Some support rgb565,If so sweet, just copy the data across.[详细]
2022-12-16 19:20 分类:问答Pygame: Blitting a moving background creates too much blur
What I am trying to do is create a viewport to view a small portion of a background. (And later put sprites in).[详细]
2022-12-13 18:30 分类:问答