Пример #1
0
        /// <summary>
        /// This function sets the pixels of a texture element. It can be used with a standard texture, render target or screen source.
        /// </summary>
        public bool SetPixels(TexturePixels pixels, Vector2 topLeft, Vector2 dimensions, int surfaceIndex = 0)
        {
            string p = pixels.Convert(ImageFormat.plain);

            return(MtaClient.DxSetTexturePixels(surfaceIndex, materialElement, p, (int)topLeft.X, (int)topLeft.Y, (int)dimensions.X, (int)dimensions.Y));
        }