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

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