コード例 #1
0
 private void OnRawTextureLoaded(TextureLoadedEventArgs obj)
 {
     if (obj.Image is Image <Rgba32> rgba)
     {
         _textureMaps[obj.Resource] = ClickMap.FromImage(rgba, Threshold);
     }
 }
コード例 #2
0
        private void OnOnRsiLoaded(RsiLoadedEventArgs obj)
        {
            if (obj.Atlas is Image <Rgba32> rgba)
            {
                var clickMap = ClickMap.FromImage(rgba, Threshold);

                var rsiData = new RsiClickMapData(clickMap, obj.AtlasOffsets);
                _rsiMaps[obj.Resource.RSI] = rsiData;
            }
        }