xchellx
-
Posts
28 -
Joined
-
Last visited
Posts posted by xchellx
-
-
is there at least a way to use `ImageRendererBgra` to render an image smaller than the layer on it's surface?
On Render, I get `System.ArgumentException: 'srcBounds ({X=0,Y=0,Width=128,Height=64}) does not contain renderBounds ({X=0,Y=0,Width=256,Height=128})'` -
I am making a FileType plugin where I read mipmap data from the file. Each mipmap is 2x smaller than each mipmap read. The issue is, having each layer the same size as the document size while using `CopyFromGdipBitmap` causes the image to repeat for the entire width of the image (not for the height though). Yes I am converting to bitmap then using `CopyFromGdipBitmap` because the file stores texture data in sequences of blocks of various sizes, and in the end its stored into an array full of pixel data but not x/y coordinates. Ergo I cant do `layer.Surface[x, y] = ...;`. How do I create a layer that is smaller in size compared to the document? Or is there an alternative to `CopyFromGdipBitmap` that supports data that is smaller than the document/layer?
How do I create a layer that is smaller than the document size?
in Plugin Developer's Central
Posted
Then what do I use? How do I render a Bitmap that is smaller than a layer on it's Surface?