Exemplo n.º 1
0
        public _WrapBitmap(IBitmap <TPixel> source, AddressMode u, AddressMode v)
        {
            _Bitmap  = source;
            _Sampler = _Bitmap.ToPixelSampler();

            SetModeX(u);
            SetModeY(v);
        }
Exemplo n.º 2
0
 public static ITextureSampler <Vector4> ToTextureSampler <TPixel>(this IBitmap <TPixel> bitmap, bool normalizedUV) where TPixel : struct, IPixel <TPixel>
 {
     return(bitmap
            .ToPixelSampler()
            .ToTextureSampler(normalizedUV));
 }