Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
0 answers
1k views

Optimizing Render Texture

I'm trying to render a shader on my mobile device. I use Graphics.Blit to render the shader as follows, void OnRenderImage(RenderTexture src, RenderTexture dest) { Graphics.Blit(src, null, ...
user avatar
2 votes
1 answer
800 views

Windows Store App - WriteableBitmap , blit method

Alright , i am trying to merge two images(superimpose one image on top of another) using writeablebitmapex library's blit method. And after applying the blit all i am getting is a transparent image ...
Mohammed Aamir K's user avatar
1 vote
1 answer
367 views

Overlay bitmaps (writeablebitmap etc.) in windows store app

I have 2 bitmaps (foreground and background) which I need to overlay on top of each other to form a new bitmap and use it as the ImageBrush for a button. The code would look something like this (...
alexbtr's user avatar
  • 3,432
0 votes
1 answer
832 views

Upgrade the quality of a blit (Winrt c#)

I actually try to make one and unique image of a canvas with multiple things on it. I create an image with all I need, but the quality of the image is really poor. Do you know how I can upgrade it ? ...
Sw1a's user avatar
  • 245
1 vote
0 answers
549 views

Remove unwanted halo when overlaying transparent PNG using WriteableBitmapEx Windows Phone

As seen from the image, the edges of eclipse is not smooth. I am using the following blend mode. Other modes produce more unwanted result. writeableBmp.Blit(destRect, wbCircle, sourceRect, ...
PutraKg's user avatar
  • 2,236
2 votes
1 answer
2k views

Overlay a smaller image over larger image using WriteableBitmapEx Windows Phone

In my hidden object game, I want to mark the object with a circle image when found with the following code where AnsX1, AnsX2, AnsY1, an AnsY2 is the pixel coordinates of the object location. The ...
PutraKg's user avatar
  • 2,236
20 votes
9 answers
5k views

The fastest way to check if a type is blittable?

In my serialiser/deserialiser, I have the following snippet: if (element_type.IsValueType && collection_type.IsArray) { try { GCHandle h = GCHandle.Alloc(...
sebf's user avatar
  • 2,893